Class: CreateRubyApp::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/create_ruby_app/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/create_ruby_app/cli.rb', line 7

def self.exit_on_failure?
  true
end

Instance Method Details

#new(name) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/create_ruby_app/cli.rb', line 38

def new(name)
  App.new(
    name: replace_dashes_with_underscores(name),
    gems: options[:gems].split(","),
    version: options[:ruby]
  ).run!
end

#versionObject



13
14
15
# File 'lib/create_ruby_app/cli.rb', line 13

def version
  say VERSION
end