lib/gito/project.rb in gito-0.2.3 vs lib/gito/project.rb in gito-0.2.4

- old
+ new

@@ -52,11 +52,11 @@ # AppUtils::execute 'echo "cd '+@destination+'" > ' + temp_script_name # AppUtils::execute '. '+temp_script_name # AppUtils::execute 'rm -rf ' + temp_script_name puts "\nPlease change directory into the project" - puts "cd #{destination.green}" + puts "cd #{destination.yellow}" end def detect_project_type Dir.chdir @destination_dir @@ -67,10 +67,12 @@ elsif File.exists?('package.json') @project_type = :node elsif File.exists?('Gemfile') @project_type = :ruby end + + puts "Detected #{@project_type}...".yellow @project_type end def install_dependencies case @project_type @@ -78,13 +80,11 @@ go_inside_and_run('./gradlew assemble') when :node go_inside_and_run('npm install') when :ruby go_inside_and_run('bundle install') - else - puts 'Unknown project type' - end + end end def cloneable_url starts_with_git = @base_url.split(//).first(4).join.eql? 'git@' ends_with_git = @base_url.split(//).last(4).join.eql? '.git' @@ -119,10 +119,10 @@ puts "Opening editor...".yellow go_inside_and_run 'atom .' end def open_folder - puts 'Opening folder'.yellow + puts 'Opening folder...'.yellow go_inside_and_run 'open .' end def go_inside_and_run(command) Dir.chdir(@destination_dir) do