Permalink
Browse files

Merge pull request #5 from maxim/master

Remove @ensured_* variables.
  • Loading branch information...
2 parents b954f11 + 7bd230c commit b3e091e1af4b0440d9f09acb356456c33cb6557e @Arie Arie committed Feb 7, 2013
Showing with 5 additions and 11 deletions.
  1. +5 −11 lib/roundsman/capistrano.rb
@@ -76,12 +76,9 @@ def run(*args)
end
def ensure_roundsman_working_dir
- unless @ensured_roundsman_working_dir
- run "mkdir -p #{fetch(:roundsman_working_dir)}"
- run "mkdir -p #{fetch(:roundsman_working_dir)}/cache"
- sudo "chown -R #{fetch(:roundsman_user)} #{fetch(:roundsman_working_dir)}"
- @ensured_roundsman_working_dir = true
- end
+ run "mkdir -p #{fetch(:roundsman_working_dir)}"
+ run "mkdir -p #{fetch(:roundsman_working_dir)}/cache"
+ sudo "chown -R #{fetch(:roundsman_user)} #{fetch(:roundsman_working_dir)}"
end
def install_ruby?
@@ -161,11 +158,8 @@ def distribution
end
def ensure_supported_distro
- unless @ensured_supported_distro
- logger.info "Using Linux distribution #{distribution}"
- abort "This distribution is not (yet) supported." unless distribution.include?("Ubuntu")
- @ensured_supported_distro = true
- end
+ logger.info "Using Linux distribution #{distribution}"
+ abort "This distribution is not (yet) supported." unless distribution.include?("Ubuntu")
end
end

0 comments on commit b3e091e

Please sign in to comment.