Sha256: 594f4ec9670d44998b179eee682e68c87478f7667fdaef2dc35b0d8be37001bf

Contents?: true

Size: 746 Bytes

Versions: 31

Compression:

Stored size: 746 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 ]

    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
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
specinfra-1.22.0 Rakefile
specinfra-1.21.0 Rakefile
specinfra-1.20.0 Rakefile
specinfra-1.19.0 Rakefile
specinfra-1.18.4 Rakefile
specinfra-1.18.3 Rakefile
specinfra-1.18.2 Rakefile
specinfra-1.18.1 Rakefile
specinfra-1.18.0 Rakefile
specinfra-1.17.0 Rakefile
specinfra-1.16.0 Rakefile