Class: Cronicle::Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/cronicle/exporter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver, options = {}) ⇒ Exporter

of class methods



8
9
10
11
# File 'lib/cronicle/exporter.rb', line 8

def initialize(driver, options = {})
  @driver = driver
  @options = 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

#exportObject



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