Sha256: 17f2d725373db63897966d7428bbf4b22965bf614a464b1e5b343ec2f908cecb
Contents?: true
Size: 938 Bytes
Versions: 4
Compression:
Stored size: 938 Bytes
Contents
require 'bundler' require 'bundler/gem_tasks' require 'rspec/core/rake_task' desc "run specs" RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = 'spec/**/*_spec.rb' end desc "run core gem specs and generated driver specs" task :all => ["driver:spec", :spec] FAKE_DIR = "chef-provisioning-fake" namespace :driver do desc "generate a '#{FAKE_DIR}' driver" task :generate do sh "./bin/generate_driver fake" end desc "run specs for #{FAKE_DIR}" task :spec do sh "cd #{FAKE_DIR} && bundle exec rspec" end desc "generate a #{FAKE_DIR} driver and run its specs" task :verify => [:generate, :spec] task :clean do sh "rm -rf #{FAKE_DIR}" end desc "generate a fresh #{FAKE_DIR} driver, run its specs, and delete it" task :cycle do Rake::Task['driver:clean'].invoke Rake::Task['driver:clean'].reenable Rake::Task['driver:verify'].invoke Rake::Task['driver:clean'].invoke end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chef-provisioning-1.5.1 | Rakefile |
chef-provisioning-1.5.0 | Rakefile |
chef-provisioning-1.4.1 | Rakefile |
chef-provisioning-1.4.0 | Rakefile |