Class: Outset::CLI
- Inherits:
-
Thor
- Object
- Thor
- Outset::CLI
- Defined in:
- lib/outset/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #config(action = "show") ⇒ Object
- #doctor ⇒ Object
- #new(app_name) ⇒ Object
- #recipes ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
11 |
# File 'lib/outset/cli.rb', line 11 def self.exit_on_failure? = true |
Instance Method Details
#config(action = "show") ⇒ Object
25 26 27 |
# File 'lib/outset/cli.rb', line 25 def config(action = "show") Commands::ConfigCmd.new(action).run end |
#doctor ⇒ Object
30 31 32 33 |
# File 'lib/outset/cli.rb', line 30 def doctor UI. Commands::Doctor.new.run end |
#new(app_name) ⇒ Object
19 20 21 22 |
# File 'lib/outset/cli.rb', line 19 def new(app_name) UI. Commands::New.new(app_name, ).run end |
#recipes ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/outset/cli.rb', line 36 def recipes UI.info("Available recipes:") puts Recipes.all.each do |name, recipe| puts " #{UI::PASTEL.bold(name.ljust(10))} #{recipe[:description]}" UI.muted(" db=#{recipe[:database]} css=#{recipe[:css]} js=#{recipe[:js]} gems=#{recipe[:gems].empty? ? "none" : recipe[:gems].join(", ")}") puts end end |
#version ⇒ Object
47 48 49 |
# File 'lib/outset/cli.rb', line 47 def version puts "outset v#{Outset::VERSION}" end |