Class: Blazing::Recipe::DeployProcesses
- Inherits:
-
Blazing::Recipe
- Object
- Blazing::Recipe
- Blazing::Recipe::DeployProcesses
- Defined in:
- lib/blazing-foreman/recipes/deploy_processes.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DeployProcesses
constructor
A new instance of DeployProcesses.
- #run(target_options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DeployProcesses
Returns a new instance of DeployProcesses.
6 7 8 9 |
# File 'lib/blazing-foreman/recipes/deploy_processes.rb', line 6 def initialize(={}) super @options.merge! :format => 'upstart', :location => '/etc/init' end |
Instance Method Details
#run(target_options = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/blazing-foreman/recipes/deploy_processes.rb', line 11 def run( = {}) super info 'deploying processes' system "#{sudo} foreman export #{arguments}" end |