lib/icebreaker/cli.rb in icebreaker-0.1.9 vs lib/icebreaker/cli.rb in icebreaker-0.2.0

- old
+ new

@@ -4,22 +4,23 @@ module IceBreaker class CLI < Thor include Thor::Actions - desc "new [app]", "Create a new Rails 3.1.1 application" + desc "new [app]", "Create a new Rails 3.2.6 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.1.1 application. + would like to generate. Based on your answers it will setup a new Rails 3.2.6 application. D def new(project) # Ensure proper version of Rails is installed - unless `gem which rails`.chomp =~ /3.1.1/ - puts "IceBreaker requires rails 3.1.1 or greater. Please install with the following command and then re-run the ice command:" - puts "$ gem install rails -v 3.1.1 --no-ri --no-rdoc" + unless `rails -v`.chomp =~ /3.2.6/ + puts "IceBreaker requires rails 3.2.6 or greater. Please install with the following command and then re-run the ice command:" + puts "$ gem install rails -v 3.2.6 --no-ri --no-rdoc" + puts "Currently getting #{`rails -v`}" exit 0 end # Check for a gemset and warn if none gemset = `rvm gemset name`.chomp @@ -31,10 +32,10 @@ exit 0 end end command = "rails new #{project} --skip-active-record --skip-test-unit --template=#{template} " - puts "Creating new Rails 3.1.1 project with: #{command}" + puts "Creating new Rails 3.2.6 project with: #{command}" exec(command) end desc "version", "Prints IceBreaker's version information" def version \ No newline at end of file