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