Class: Orange::Ruby::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/orange/ruby/cli.rb

Instance Method Summary collapse

Instance Method Details

#rails(project) ⇒ Object



12
13
14
15
16
17
# File 'lib/orange/ruby/cli.rb', line 12

def rails(project)
  exec(<<-COMMAND)
    rails new #{project} \
      --template=#{template}
  COMMAND
end

#versionObject



20
21
22
23
# File 'lib/orange/ruby/cli.rb', line 20

def version
  say "Orange v#{Orange::VERSION}"
  say "Released under the MIT License.  © 2010 Factory Design Labs"
end