Sha256: d27208637847983328c15acad9057c0923cbdfb3f80bf75bf764ab558ab28643

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require 'rake'

namespace :rspec_profiling do
  desc "Install the collector"
  task install: :environment do
    collector.install
  end

  desc "Uninstall the collector"
  task uninstall: :environment do
    collector.uninstall
  end

  task console: :environment do
    require 'irb'
    require 'irb/completion'
    require 'rspec_profiling'
    require 'rspec_profiling/console'
    ARGV.clear
    IRB.start
  end

  task :reset do
    collector.reset
  end

  def collector
    RspecProfiling.config.collector
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec_profiling-0.0.9 lib/tasks/rspec_profiling.rake
rspec_profiling-0.0.8 lib/tasks/rspec_profiling.rake
rspec_profiling-0.0.7 lib/tasks/rspec_profiling.rake
rspec_profiling-0.0.6 lib/tasks/rspec_profiling.rake
rspec_profiling-0.0.5 lib/tasks/rspec_profiling.rake
rspec_profiling-0.0.4 lib/tasks/rspec_profiling.rake