Sha256: 5f1b1b9828ed3fd3e8c303a61f872a995060ff1ef0c5fbf9776e82de08dc5902

Contents?: true

Size: 674 Bytes

Versions: 25

Compression:

Stored size: 674 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 )

  task :all => [ oses.map {|os| "spec:#{os}" }, :helpers, :exec, :ssh ].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

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

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
serverspec-0.8.1 Rakefile
serverspec-0.8.0 Rakefile
serverspec-0.7.13 Rakefile
serverspec-0.7.12 Rakefile
serverspec-0.7.11 Rakefile
serverspec-0.7.10 Rakefile
serverspec-0.7.9 Rakefile
serverspec-0.7.8 Rakefile
serverspec-0.7.7 Rakefile
serverspec-0.7.6 Rakefile
serverspec-0.7.5 Rakefile
serverspec-0.7.4 Rakefile
serverspec-0.7.3 Rakefile
serverspec-0.7.2 Rakefile
serverspec-0.7.1 Rakefile
serverspec-0.7.0 Rakefile
serverspec-0.6.30 Rakefile
serverspec-0.6.29 Rakefile
serverspec-0.6.28 Rakefile
serverspec-0.6.27 Rakefile