Class: Paparazzi::Camera
- Inherits:
-
Object
- Object
- Paparazzi::Camera
- Defined in:
- lib/paparazzi/camera.rb
Constant Summary collapse
- REQUIRED_SETTINGS =
[:source,:destination]
Class Attribute Summary collapse
-
.destination ⇒ Object
writeonly
Sets the attribute destination.
-
.reserves ⇒ Object
writeonly
Sets the attribute reserves.
-
.rsync_flags ⇒ Object
Returns the value of attribute rsync_flags.
-
.source ⇒ Object
Returns the value of attribute source.
Class Method Summary collapse
Class Attribute Details
.destination=(value) ⇒ Object
Sets the attribute destination
11 12 13 |
# File 'lib/paparazzi/camera.rb', line 11 def destination=(value) @destination = value end |
.reserves=(value) ⇒ Object
Sets the attribute reserves
11 12 13 |
# File 'lib/paparazzi/camera.rb', line 11 def reserves=(value) @reserves = value end |
.rsync_flags ⇒ Object
Returns the value of attribute rsync_flags.
11 12 13 |
# File 'lib/paparazzi/camera.rb', line 11 def rsync_flags @rsync_flags end |
.source ⇒ Object
Returns the value of attribute source.
11 12 13 |
# File 'lib/paparazzi/camera.rb', line 11 def source @source end |
Class Method Details
.trigger(settings = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/paparazzi/camera.rb', line 13 def trigger(settings = {}) validate_and_cache_settings(settings) AdmitOne::LockFile.new("paparazzi-#{Digest::MD5.hexdigest(destination)}") do setup purge_old_snapshots make_snapshots end end |