Class: Pkgr::Cron

Inherits:
Object
  • Object
show all
Defined in:
lib/pkgr/cron.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, destination) ⇒ Cron

Returns a new instance of Cron.



8
9
10
# File 'lib/pkgr/cron.rb', line 8

def initialize(source, destination)
  @source, @destination = source, destination
end

Instance Attribute Details

#destinationObject (readonly)

the destination, most likely in /etc/cron.d/…



6
7
8
# File 'lib/pkgr/cron.rb', line 6

def destination
  @destination
end

#sourceObject (readonly)

the source, in /opt/app-name/…



4
5
6
# File 'lib/pkgr/cron.rb', line 4

def source
  @source
end