Class: Blazing::CLI

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

Instance Method Summary collapse

Instance Method Details

#goto(target_name) ⇒ Object

SSH to the server and cd into the app directory. Of course it also sets the appropriate RAILS_ENV



65
66
67
# File 'lib/blazing/cli.rb', line 65

def goto(target_name)
  Blazing::Commands.run(:goto, :target_name => target_name, :options => options)
end

#initObject

Bootstrap blazing by creating a sample config file



14
15
16
# File 'lib/blazing/cli.rb', line 14

def init
  Blazing::Commands.run(:init)
end

#listObject

List the available blazing recipes



74
75
76
# File 'lib/blazing/cli.rb', line 74

def list
  Blazing::Commands.run(:list)
end

#recipes(target_name) ⇒ Object

Run the configured blazing recipes (used on remote machien)



51
52
53
# File 'lib/blazing/cli.rb', line 51

def recipes(target_name)
  Blazing::Commands.run(:recipes, :target_name => target_name, :options => options)
end

#setup(target_name = nil) ⇒ Object

Setup a target to be deployed with blazing



28
29
30
# File 'lib/blazing/cli.rb', line 28

def setup(target_name = nil)
  Blazing::Commands.run(:setup, :target_name => target_name, :options => options)
end

#update(target_name = nil) ⇒ Object

Update the target hook so it matches the settings in the config



42
43
44
# File 'lib/blazing/cli.rb', line 42

def update(target_name = nil)
  Blazing::Commands.run(:update, :target_name => target_name, :options => options)
end