Sha256: 0ca5b982c3a45bccededad1779403e3ec3a361950f316ca556ff6d1636b2c272

Contents?: true

Size: 1.1 KB

Versions: 85

Compression:

Stored size: 1.1 KB

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, :processor, :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(:processor) do |t|
      t.pattern = "spec/processor_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

85 entries across 85 versions & 1 rubygems

Version Path
specinfra-2.82.19 Rakefile
specinfra-2.82.18 Rakefile
specinfra-2.82.17 Rakefile
specinfra-2.82.16 Rakefile
specinfra-2.82.15 Rakefile
specinfra-2.82.14 Rakefile
specinfra-2.82.13 Rakefile
specinfra-2.82.12 Rakefile
specinfra-2.82.11 Rakefile
specinfra-2.82.10 Rakefile
specinfra-2.82.9 Rakefile
specinfra-2.82.8 Rakefile
specinfra-2.82.7 Rakefile
specinfra-2.82.6 Rakefile
specinfra-2.82.5 Rakefile
specinfra-2.82.4 Rakefile
specinfra-2.82.3 Rakefile
specinfra-2.82.2 Rakefile
specinfra-2.82.1 Rakefile
specinfra-2.82.0 Rakefile