Class: Conjure::DelayedJob

Inherits:
Object
  • Object
show all
Defined in:
lib/conjure/delayed_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DelayedJob

Returns a new instance of DelayedJob.



3
4
5
# File 'lib/conjure/delayed_job.rb', line 3

def initialize(options)
  @rails_env = options[:rails_env]
end

Instance Method Details

#apply(template) ⇒ Object



7
8
9
10
11
12
# File 'lib/conjure/delayed_job.rb', line 7

def apply(template)
  template.add_file_data monit_rc, "/etc/monit/monitrc"
  template.run "chmod 0600 /etc/monit/monitrc"
  template.add_file_data monit_run, "/etc/service/monit/run"
  template.run "chmod 0700 /etc/service/monit/run"
end

#system_packagesObject



14
15
16
# File 'lib/conjure/delayed_job.rb', line 14

def system_packages
  ["monit"]
end