Sha256: b2718e6c81d9048dd37ac6c33c91caf80af89a7f29e11b1d5c96b8dc331438b1
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
require 'rake' require 'redis' task :run do FnordMetric.run end task :worker do FnordMetric.server_configuration = { :web_interface => false, :inbound_stream => false, :start_worker => true } 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|worker|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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fnordmetric-0.7.5 | lib/fnordmetric/standalone.rb |
fnordmetric-0.7.4 | lib/fnordmetric/standalone.rb |
fnordmetric-0.7.3 | lib/fnordmetric/standalone.rb |