Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (29 sloc) 0.77 kb
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require File.join(File.dirname(__FILE__), 'graphiti')
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
task :default => :test
namespace :graphiti do
desc 'Rebuild Metrics List'
task :metrics do
list = Metric.all true
puts "Got #{list.length} metrics"
end
desc 'Send email reports per dashboard. Needs `reports` settings in settings.yml'
task :send_reports do
Dashboard.send_reports
end
end
Jump to Line
Something went wrong with that request. Please try again.