Sha256: 4523ae4270f635d6929ca0daf20826ea8f60ab06eb87e299c47aee8d8a1f29db

Contents?: true

Size: 748 Bytes

Versions: 5

Compression:

Stored size: 748 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "octorelease"

task :spec => 'spec:all'

namespace :spec do
  oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd freebsd10)

  task :all => [ oses.map {|os| "spec:#{os}" }, :exec, :ssh, :cmd, :winrm, :powershell, :helper ].flatten

  oses.each do |os|
    RSpec::Core::RakeTask.new(os.to_sym) do |t|
      t.pattern = "spec/#{os}/*_spec.rb"
    end
  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

  RSpec::Core::RakeTask.new(:helper) do |t|
    t.pattern = "spec/helper/*_spec.rb"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-1.0.0 Rakefile
serverspec-0.16.0 Rakefile
serverspec-0.15.5 Rakefile
serverspec-0.15.4 Rakefile
serverspec-0.15.3 Rakefile