lib/gito/project.rb in gito-0.4.10 vs lib/gito/project.rb in gito-0.4.11
- old
+ new
@@ -62,11 +62,11 @@
Dir.chdir(@destination_dir)
types.each do |item|
if File.exists? (item['file_requirement'])
- puts "\nš #{item['type']} detected...\n".yellow
+ puts "š #{item['type']} detected...".yellow
go_inside_and_run item['installation_command']
end
end
end
@@ -96,28 +96,29 @@
end
@destination_dir = prefix + "#{@destination}"
if File.directory?(@destination_dir)
- puts "\nš¤ The folder #{@destination_dir.green} is not empty...\n\n"
+ puts "š¤ The folder #{@destination_dir.green} is not empty..."
go_inside_and_run "git reset --hard HEAD"
go_inside_and_run "git pull"
else
- puts "\nš Cloning #{url.green}...\n\n"
+ puts "š Cloning #{url.green}..."
shell_copy_string = shell_copy ? '--depth 1' : ''
+ puts shell_copy_string
AppUtils.execute("git clone #{shell_copy_string} --recursive #{url} #{@destination_dir}")
end
@destination_dir
end
def open_editor(app)
- puts "\nšā Opening editor...".yellow
+ puts "šā Opening editor...".yellow
go_inside_and_run "#{app} ."
end
def open_folder
- puts "\nš³ Opening folder...".yellow
+ puts "š³ Opening folder...".yellow
go_inside_and_run 'open .'
end
def go_inside_and_run(command)
Dir.chdir(@destination_dir) do