Sha256: 6e114cf19f295f28371da4dc5f9c8505005f91cd71b65fb9b9487bfd138ff6d3

Contents?: true

Size: 585 Bytes

Versions: 10

Compression:

Stored size: 585 Bytes

Contents

require "bundler/gem_tasks"
require 'rake'
require 'rspec/core/rake_task'

require 'simple_metrics'

RSpec::Core::RakeTask.new 
task :default  => :spec
task :test  => :spec

namespace :simple_metrics do

  desc "Ensure collections and index exist"
  task :ensure_collections_exist do
    SimpleMetrics.logger = Logger.new($stdout)
    SimpleMetrics::DataPointRepository.ensure_collections_exist
  end

  desc "Truncate all collections"
  task :truncate_collections do
    SimpleMetrics.logger = Logger.new($stdout)
    SimpleMetrics::DataPointRepository.truncate_collections
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simple_metrics-0.4.6 Rakefile
simple_metrics-0.4.5 Rakefile
simple_metrics-0.4.4 Rakefile
simple_metrics-0.4.3 Rakefile
simple_metrics-0.4.2 Rakefile
simple_metrics-0.3.6 Rakefile
simple_metrics-0.3.5 Rakefile
simple_metrics-0.3.4 Rakefile
simple_metrics-0.3.3 Rakefile
simple_metrics-0.3.2 Rakefile