Sha256: 4f3c7b1d94437b602fae522b3d98940508831cd2a97bd710dc52a450694b6e09

Contents?: true

Size: 834 Bytes

Versions: 7

Compression:

Stored size: 834 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 arch)
  backends = %w( exec ssh cmd winrm powershell )

  task :all => [ oses.map {|os| "spec:#{os}" }, backends, :helper, :unit ].flatten

  oses.each do |os|
    RSpec::Core::RakeTask.new(os.to_sym) do |t|
      t.pattern = "spec/#{os}/*_spec.rb"
    end
  end

  backends.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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta2 Rakefile
serverspec-1.4.2 Rakefile
serverspec-2.0.0.beta1 Rakefile
serverspec-1.4.1 Rakefile
serverspec-1.4.0 Rakefile
serverspec-1.3.0 Rakefile
serverspec-1.2.0 Rakefile