Class: Pkgr::Cron
- Inherits:
-
Object
- Object
- Pkgr::Cron
- Defined in:
- lib/pkgr/cron.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
readonly
the destination, most likely in /etc/cron.d/…
-
#source ⇒ Object
readonly
the source, in /opt/app-name/…
Instance Method Summary collapse
-
#initialize(source, destination) ⇒ Cron
constructor
A new instance of Cron.
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
#destination ⇒ Object (readonly)
the destination, most likely in /etc/cron.d/…
6 7 8 |
# File 'lib/pkgr/cron.rb', line 6 def destination @destination end |
#source ⇒ Object (readonly)
the source, in /opt/app-name/…
4 5 6 |
# File 'lib/pkgr/cron.rb', line 4 def source @source end |