Sha256: 09da258ff58722abf58c99540eb13df2ff3c531ecd36363776d3a592493529a2

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

module Flydata
  class Cron
    CRON_SETTING_SHELL=File.join(
      File.expand_path(File.dirname(__FILE__)),
      "flydata_crontab.sh")
    def initialize
    end
    def update(option=nil)
      arg = option ? option : ''
      ret = system("sh " + CRON_SETTING_SHELL + " " + arg)
      raise "Failed to update crontab." unless ret
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flydata-0.0.1.2011102401 lib/flydata/cron.rb
flydata-0.0.1.2011102303 lib/flydata/cron.rb
flydata-0.0.1.2011102302 lib/flydata/cron.rb
flydata-0.0.1.2011102301 lib/flydata/cron.rb