Class: Conjure::DelayedJob
- Inherits:
-
Object
- Object
- Conjure::DelayedJob
- Defined in:
- lib/conjure/delayed_job.rb
Instance Method Summary collapse
- #apply(template) ⇒ Object
-
#initialize(options) ⇒ DelayedJob
constructor
A new instance of DelayedJob.
- #system_packages ⇒ Object
Constructor Details
#initialize(options) ⇒ DelayedJob
Returns a new instance of DelayedJob.
3 4 5 |
# File 'lib/conjure/delayed_job.rb', line 3 def initialize() @rails_env = [: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_packages ⇒ Object
14 15 16 |
# File 'lib/conjure/delayed_job.rb', line 14 def system_packages ["monit"] end |