Sha256: fec4d33aabfad73d5c0d799c4786cb3561ccbcdb51a6b76db7187ebf01b4864f

Contents?: true

Size: 646 Bytes

Versions: 26

Compression:

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

  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

26 entries across 26 versions & 1 rubygems

Version Path
serverspec-0.5.5 Rakefile
serverspec-0.5.4 Rakefile
serverspec-0.5.3 Rakefile
serverspec-0.5.2 Rakefile
serverspec-0.5.1 Rakefile
serverspec-0.5.0 Rakefile