Class: Blazing::Recipe::DeployProcesses

Inherits:
Blazing::Recipe
  • Object
show all
Defined in:
lib/blazing-foreman/recipes/deploy_processes.rb

Instance Method Summary collapse

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(options={})
  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(target_options = {})
  super target_options

  info 'deploying processes'
  system "#{sudo} foreman export #{arguments}"
end