Class: Outset::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (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

#doctorObject



30
31
32
33
# File 'lib/outset/cli.rb', line 30

def doctor
  UI.banner
  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.banner
  Commands::New.new(app_name, options).run
end

#recipesObject



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

#versionObject



47
48
49
# File 'lib/outset/cli.rb', line 47

def version
  puts "outset v#{Outset::VERSION}"
end