Class: Conjure::LogRotate

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ LogRotate

Returns a new instance of LogRotate.



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

def initialize(options)
  @rails_env = options[: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_packagesObject



11
12
# File 'lib/conjure/log_rotate.rb', line 11

def system_packages
end