Sha256: cdc92a35afcd14cbf42f59052ecc4d0fd722388e65cad5ef758cc304bdd6c65e
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
require "bundler/gem_tasks" require 'rspec/core/rake_task' task :spec => 'spec:all' namespace :spec do oses = %w( darwin debian gentoo redhat solaris solaris10 solaris11 smartos windows) task :all => [ oses.map {|os| "spec:#{os}" }, :helpers, :exec, :ssh, :cmd, :winrm, :powershell ].flatten oses.each do |os| RSpec::Core::RakeTask.new(os.to_sym) do |t| t.pattern = "spec/#{os}/*_spec.rb" end end RSpec::Core::RakeTask.new(:helpers) do |t| t.pattern = "spec/helpers/*_spec.rb" end [:exec, :ssh, :cmd, :winrm, :powershell].each do |backend| RSpec::Core::RakeTask.new(backend) do |t| t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.9.1 | Rakefile |
serverspec-0.9.0 | Rakefile |