Sha256: 8a8be019996981d957228842546c6c195e1121d1762ccb9cf492cc1fbb4c8d6e

Contents?: true

Size: 1015 Bytes

Versions: 28

Compression:

Stored size: 1015 Bytes

Contents

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

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

  namespace :spec do
    task :all => [ :helper, :backend, :configuration, :command, :host_inventory ]

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

    task :backend => 'backend:all'
    namespace :backend do
      backends = %w[exec ssh]

      task :all => backends

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

    RSpec::Core::RakeTask.new(:configuration) do |t|
      t.pattern = "spec/configuration_spec.rb"
    end

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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
specinfra-2.66.5 Rakefile
specinfra-2.66.4 Rakefile
specinfra-2.66.3 Rakefile
specinfra-2.66.2 Rakefile
specinfra-2.66.1 Rakefile
specinfra-2.66.0 Rakefile
specinfra-2.65.0 Rakefile
specinfra-2.64.0 Rakefile
specinfra-2.63.3 Rakefile
specinfra-2.63.2 Rakefile
specinfra-2.63.1 Rakefile
specinfra-2.63.0 Rakefile
specinfra-2.62.0 Rakefile
specinfra-2.61.3 Rakefile
specinfra-2.61.2 Rakefile
specinfra-2.61.1 Rakefile
specinfra-2.61.0 Rakefile
specinfra-2.60.4 Rakefile
specinfra-2.60.3 Rakefile
specinfra-2.60.2 Rakefile