Sha256: 3f87383b289e6f6fbbd03ac68d00babc6d303d4200147e6a0c0498a94c32d6c3
Contents?: true
Size: 530 Bytes
Versions: 17
Compression:
Stored size: 530 Bytes
Contents
require 'rake' require 'redis' task :run do FnordMetric.run end task :log do FnordMetric::Logger.start(dump_file_path) end task :import do FnordMetric::Logger.import(dump_file_path) end task :help do puts "usage: #{$0} {run|log|import} [DUMP_FILE=fm_dump.json]" end task :default => :help def dump_file_path if ENV["DUMP_FILE"].blank? Rake::Task[:help].execute; exit! else ::File.expand_path(ENV["DUMP_FILE"], ::File.dirname($0)) end end Rake.application.init('fnordmetric') Rake.application.top_level
Version data entries
17 entries across 17 versions & 1 rubygems