lib/icebreaker/cli.rb in icebreaker-0.0.4 vs lib/icebreaker/cli.rb in icebreaker-0.1.0

- old
+ new

@@ -7,25 +7,25 @@ include Thor::Actions desc "new [app]", "Create a new Rails 3 application" long_desc <<-D IceBreaker will ask you a few questions to determine what features you - would like to generate. Based on your answers it will setup a new Rails 3 application. + would like to generate. Based on your answers it will setup a new Rails 3.1 application. D def new(project) # Check for a gemset and warn if none gemset = `rvm gemset name`.chomp - unless gemset == 'icebreaker' - say "It is recommend that you use a separate RVM gemset called 'icebreaker' when creating a Rails project with IceBreaker. This will keep your system gems clean." - say "You can create it by running this command: rvm use 1.9.2@icebreaker --create" - if yes?("Would you like to exit now and create a separate RVM gemset for icebreaker?") + unless gemset == project + say "It is recommend that you use a separate RVM gemset called '#{project}' when creating a Rails project with IceBreaker. This will keep your system gems clean." + say "You can exit now and create it by running this command: rvm use 1.9.2@#{project} --create" + if yes?("Would you like to exit now and create a separate RVM gemset for #{project}?") exit 0 end end - command = "rails new #{project} --skip-active-record --skip-test-unit --skip-prototype --template=#{template} " - puts "Creating new Rails 3 project with: #{command}" + command = "rails new #{project} --skip-active-record --skip-test-unit --template=#{template} " + puts "Creating new Rails 3.1 project with: #{command}" exec(command) end desc "version", "Prints IceBreaker's version information" def version \ No newline at end of file