Sha256: 0333f664e64c86cf43bd1b3638b8a05ff4c801e5d3a91d0b5b76e8af8cda7e8b

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require 'rake'

# require 'resque/tasks'
# require 'resque_scheduler/tasks'    

require 'bundler/gem_tasks'

require 'rspec/core/rake_task'

desc "Run specs"
RSpec::Core::RakeTask.new do |task|
  task.pattern = "spec/**/*_spec.rb"
end
  
desc "Run watchr"
task :watchr do
  sh %{bundle exec watchr .watchr}
end

desc "Run spork"
task :spork do
  sh %{bundle exec spork}
end


Bundler.require(:doc)
desc "Generate documentation"
YARD::Rake::YardocTask.new do |t|
  t.files = [ 'lib/**/*.rb' ]
end

# namespace :resque do
  # task :setup do
    # require 'resque'
    # require 'resque_scheduler'
    # require 'resque/scheduler'
    
    # Resque.redis = 'localhost:6379'
    
    # Resque.schedule = YAML.load_file(
      # File.join(File.expand_path(File.dirname(__FILE__)), 'config/schedule.yml')
    # )
  
  # end
# end    

namespace :overwatch do
  namespace :test do 
    task :snapshot => :environment do
      a = Asset.first
      a.snapshots.create(:raw_data => {:one => rand(10), :two => { :three => rand(10) }})
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
overwatch-collection-0.1.1 Rakefile