Sha256: 1e9d0139ff4558d4ef471929a24fb93a86e87d4e8bc8a0962509f93dc0b49687
Contents?: true
Size: 598 Bytes
Versions: 8
Compression:
Stored size: 598 Bytes
Contents
require 'rake' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/*/*_spec.rb' end task :default => :spec desc "Run serverspec to all hosts" task :spec => 'serverspec:all' class ServerspecTask < RSpec::Core::RakeTask attr_accessor :target def spec_command cmd = super "env TARGET_HOST=#{target} #{cmd}" end end namespace :serverspec do %w(<%=@name%>).each do |profile| ServerspecTask.new(profile.to_sym) do |t| t.target = profile t.pattern = "spec/#{profile}/*_spec.rb" end end end task :default => 'serverspec:minimal'
Version data entries
8 entries across 8 versions & 1 rubygems