lib/tlapse/capture.rb in tlapse-0.6.2 vs lib/tlapse/capture.rb in tlapse-0.6.3

- old
+ new

@@ -2,12 +2,17 @@ module Tlapse module Capture CAPTURE_FILENAME = "%Y-%m-%d_%H-%M-%S.jpg" + CAPTURE_DIRNAME = "%Y-%m-%d" def self.capture_filename CAPTURE_FILENAME + end + + def self.capture_dirname + CAPTURE_DIRNAME end def self.capture_single `gphoto2 --capture-image-and-download --filename '#{capture_filename}'` end