Fix a few more syntax-related rubocop issues manually

This commit is contained in:
Nicolas McCurdy
2014-01-04 22:09:28 -05:00
parent fc2bbb1d6e
commit 12244abb56
4 changed files with 5 additions and 20 deletions

View File

@@ -251,7 +251,7 @@ class Homesick < Thor
desc 'open CASTLE', 'Open your default editor in the root of the given castle'
def open(castle = DEFAULT_CASTLE_NAME)
if !ENV['EDITOR']
unless ENV['EDITOR']
say_status :error, 'The $EDITOR environment variable must be set to use this command', :red
exit(1)
@@ -427,7 +427,7 @@ class Homesick < Thor
home_path = home_dir.join(relative_dir).join(path)
yield(absolute_path, home_path)
end
end
end
end

View File

@@ -1,7 +1,7 @@
# -*- encoding : utf-8 -*-
class Homesick
module Actions
# TODO move this to be more like thor's template, empty_directory, etc
# TODO: move this to be more like thor's template, empty_directory, etc
def git_clone(repo, config = {})
config ||= {}
destination = config[:destination] || File.basename(repo, '.git')