Class: Conjure::LogRotate
- Inherits:
-
Object
- Object
- Conjure::LogRotate
- Defined in:
- lib/conjure/log_rotate.rb
Instance Method Summary collapse
- #apply(template) ⇒ Object
-
#initialize(options) ⇒ LogRotate
constructor
A new instance of LogRotate.
- #system_packages ⇒ Object
Constructor Details
#initialize(options) ⇒ LogRotate
Returns a new instance of LogRotate.
3 4 5 |
# File 'lib/conjure/log_rotate.rb', line 3 def initialize() @rails_env = [:rails_env] end |
Instance Method Details
#apply(template) ⇒ Object
7 8 9 |
# File 'lib/conjure/log_rotate.rb', line 7 def apply(template) template.add_file_data config_file, "/etc/logrotate.d/application" end |
#system_packages ⇒ Object
11 12 |
# File 'lib/conjure/log_rotate.rb', line 11 def system_packages end |