class CreateRubyApp::CLI
Public Class Methods
exit_on_failure?()
click to toggle source
# File lib/create_ruby_app/cli.rb, line 7 def self.exit_on_failure? true end
Public Instance Methods
new(name)
click to toggle source
# 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
version()
click to toggle source
# File lib/create_ruby_app/cli.rb, line 13 def version say VERSION end
Private Instance Methods
replace_dashes_with_underscores(name)
click to toggle source
# File lib/create_ruby_app/cli.rb, line 48 def replace_dashes_with_underscores(name) name.tr("-", "_") end