Sha256: 71c7f539a70e498beb734f90f6d2a440d32343619fb728346039b5a2c7ff15f7

Contents?: true

Size: 672 Bytes

Versions: 24

Compression:

Stored size: 672 Bytes

Contents

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

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

  namespace :spec do
    task :all => [ 'spec:type:all', 'spec:helper' ]

    namespace :type do
      oses = Dir.glob('spec/type/*').map {|d| File.basename(d)}

      task :all => oses.map {|os| "spec:type:#{os}" }

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

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

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
serverspec-2.42.3 Rakefile
serverspec-2.42.2 Rakefile
serverspec-2.42.1 Rakefile
serverspec-cem-acpt-2.42.0 Rakefile
serverspec-2.42.0 Rakefile
serverspec-2.41.8 Rakefile
serverspec-2.41.7 Rakefile
serverspec-2.41.6 Rakefile
serverspec-2.41.5 Rakefile
serverspec-2.41.4 Rakefile
serverspec-2.41.3 Rakefile
serverspec-2.41.2 Rakefile
serverspec-2.41.1 Rakefile
serverspec-2.41.0 Rakefile
serverspec-2.40.0 Rakefile
serverspec-2.39.2 Rakefile
serverspec-2.39.1 Rakefile
serverspec-2.39.0 Rakefile
serverspec-2.38.1 Rakefile
serverspec-2.38.0 Rakefile