Class: Blazing::CLI
- Inherits:
-
Thor
- Object
- Thor
- Blazing::CLI
- Defined in:
- lib/blazing/cli.rb
Instance Method Summary collapse
-
#goto(target_name) ⇒ Object
SSH to the server and cd into the app directory.
-
#init ⇒ Object
Bootstrap blazing by creating a sample config file.
-
#list ⇒ Object
List the available blazing recipes.
-
#recipes(target_name) ⇒ Object
Run the configured blazing recipes (used on remote machien).
-
#setup(target_name = nil) ⇒ Object
Setup a target to be deployed with blazing.
-
#update(target_name = nil) ⇒ Object
Update the target hook so it matches the settings in the config.
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 => ) end |
#init ⇒ Object
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 |
#list ⇒ Object
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 => ) end |