Sha256: 8840201736a7a2942fdb3f50dd5083f1f281f0fe5ee30a431e260dab23565c14

Contents?: true

Size: 982 Bytes

Versions: 93

Compression:

Stored size: 982 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

93 entries across 93 versions & 1 rubygems

Version Path
specinfra-2.39.1 Rakefile
specinfra-2.39.0 Rakefile
specinfra-2.38.1 Rakefile
specinfra-2.38.0 Rakefile
specinfra-2.37.9 Rakefile
specinfra-2.37.8 Rakefile
specinfra-2.37.6 Rakefile
specinfra-2.37.5 Rakefile
specinfra-2.37.4 Rakefile
specinfra-2.37.3 Rakefile
specinfra-2.37.2 Rakefile
specinfra-2.37.1 Rakefile
specinfra-2.37.0 Rakefile
specinfra-2.36.18 Rakefile
specinfra-2.36.17 Rakefile
specinfra-2.36.16 Rakefile
specinfra-2.36.15 Rakefile
specinfra-2.36.14 Rakefile
specinfra-2.36.13 Rakefile
specinfra-2.36.12 Rakefile