Sha256: b8cde008976ffd640eb660b1c1e9ede21cecc468c070f94282cca479291173ee
Contents?: true
Size: 933 Bytes
Versions: 3
Compression:
Stored size: 933 Bytes
Contents
require 'thor' require 'thor/actions' require 'active_support/secure_random' module IceBreaker class CLI < Thor 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. D def new(project) command = "rails new #{project} --skip-active-record --skip-test-unit --skip-prototype --template=#{template} " puts "Creating new Rails 3 project with: #{command}" exec(command) end desc "version", "Prints IceBreaker's version information" def version say "IceBreaker version #{IceBreaker::VERSION}" end map %w(-v --version) => :version private def template File.expand_path(File.dirname(__FILE__) + "/../../templates/bootstrap.rb") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
icebreaker-0.0.3 | lib/icebreaker/cli.rb |
icebreaker-0.0.2 | lib/icebreaker/cli.rb |
icebreaker-0.0.1 | lib/icebreaker/cli.rb |