Class: Cronicle::Exporter
- Inherits:
-
Object
- Object
- Cronicle::Exporter
- Defined in:
- lib/cronicle/exporter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(driver, options = {}) ⇒ Exporter
constructor
of class methods.
Constructor Details
#initialize(driver, options = {}) ⇒ Exporter
of class methods
8 9 10 11 |
# File 'lib/cronicle/exporter.rb', line 8 def initialize(driver, = {}) @driver = driver @options = end |
Class Method Details
.export(driver, opts = {}) ⇒ Object
3 4 5 |
# File 'lib/cronicle/exporter.rb', line 3 def export(driver, opts = {}) self.new(driver, opts).export end |
Instance Method Details
#export ⇒ Object
13 14 15 16 |
# File 'lib/cronicle/exporter.rb', line 13 def export crontabs_by_host, libexec_by_host = @driver.export_crontab parse(crontabs_by_host, libexec_by_host) end |