follow Ruby Style Guide for some points

This commit is contained in:
muratayusuke
2013-06-19 17:21:24 +00:00
committed by thilko
parent bf248cd645
commit f8a6fb9ce2
5 changed files with 36 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ class Homesick
path = Pathname.new(path)
inside path do
unless path.join('.git').exist?
if !path.join('.git').exist?
say_status 'git init', '' unless options[:quiet]
system 'git init >/dev/null' unless options[:pretend]
else
@@ -34,7 +34,7 @@ class Homesick
existing_remote = `git config remote.#{name}.url`.chomp
existing_remote = nil if existing_remote == ''
unless existing_remote
if !existing_remote
say_status 'git remote', "add #{name} #{url}" unless options[:quiet]
system "git remote add #{name} #{url}" unless options[:pretend]
else