Sha256: 18cd39cd4544b9243120cfe9776d486e2096c108f2e1cdf3566fee60ebc8679a

Contents?: true

Size: 985 Bytes

Versions: 63

Compression:

Stored size: 985 Bytes

Contents

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

if defined?(RSpec)
  task :spec => '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

63 entries across 63 versions & 3 rubygems

Version Path
specinfra-rb19-2.44.7 Rakefile
specinfra-2.59.0 Rakefile
specinfra-2.58.0 Rakefile
specinfra-2.57.5 Rakefile
specinfra-2.57.4 Rakefile
specinfra-2.57.3 Rakefile
specinfra-2.57.2 Rakefile
specinfra-2.57.1 Rakefile
specinfra-cisco-2.41.0 Rakefile
specinfra-2.57.0 Rakefile
specinfra-2.56.1 Rakefile
specinfra-2.56.0 Rakefile
specinfra-2.55.0 Rakefile
specinfra-2.54.2 Rakefile
specinfra-2.54.1 Rakefile
specinfra-2.54.0 Rakefile
specinfra-2.53.1 Rakefile
specinfra-2.53.0 Rakefile
specinfra-2.52.0 Rakefile
specinfra-2.51.2 Rakefile