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

Version Path
fnordmetric-0.7.1 lib/fnordmetric/standalone.rb
fnordmetric-0.7.0 lib/fnordmetric/standalone.rb
fnordmetric-0.6.6 lib/fnordmetric/standalone.rb
fnordmetric-0.6.5 lib/fnordmetric/standalone.rb
fnordmetric-0.6.4 lib/fnordmetric/standalone.rb
fnordmetric-0.6.3 lib/fnordmetric/standalone.rb
fnordmetric-0.6.2 lib/fnordmetric/standalone.rb
fnordmetric-0.6.1 lib/fnordmetric/standalone.rb
fnordmetric-0.6.0 lib/fnordmetric/standalone.rb
fnordmetric-0.5.9 lib/fnordmetric/standalone.rb
fnordmetric-0.5.8 lib/fnordmetric/standalone.rb
fnordmetric-0.5.7 lib/fnordmetric/standalone.rb
fnordmetric-0.5.6 lib/fnordmetric/standalone.rb
fnordmetric-0.5.5 lib/fnordmetric/standalone.rb
fnordmetric-0.5.4 lib/fnordmetric/standalone.rb
fnordmetric-0.5.3 lib/fnordmetric/standalone.rb
fnordmetric-0.5.2 lib/fnordmetric/standalone.rb