Sha256: d84177a4f69d845b05b8b9ec7b5066a96478ae322ec6d71e950dfc2ae326f989

Contents?: true

Size: 960 Bytes

Versions: 10

Compression:

Stored size: 960 Bytes

Contents

require "bundler/gem_tasks"
begin
  require "rspec/core/rake_task"
  require "octorelease"
rescue LoadError
end

if defined?(RSpec)
  task :spec => 'spec:all'

  namespace :spec do
    oses = %w( darwin debian gentoo plamo redhat redhat7 aix solaris solaris10 solaris11 smartos windows freebsd freebsd10 arch fedora ubuntu nixos)
    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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
serverspec-1.16.0 Rakefile
serverspec-1.15.0 Rakefile
serverspec-1.14.0 Rakefile
serverspec-1.13.0 Rakefile
serverspec-1.12.0 Rakefile
serverspec-1.11.0 Rakefile
serverspec-1.10.0 Rakefile
serverspec-1.9.1 Rakefile
serverspec-1.9.0 Rakefile
serverspec-1.8.0 Rakefile