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.27.5 Rakefile
specinfra-1.27.4 Rakefile
specinfra-1.27.3 Rakefile
specinfra-1.27.2 Rakefile
specinfra-1.27.1 Rakefile
specinfra-1.27.0 Rakefile
specinfra-1.26.0 Rakefile
specinfra-1.25.8 Rakefile
specinfra-1.25.7 Rakefile
specinfra-1.25.6 Rakefile
specinfra-1.25.5 Rakefile
specinfra-1.25.4 Rakefile
specinfra-1.25.3 Rakefile
specinfra-1.25.2 Rakefile
specinfra-1.25.1 Rakefile
specinfra-1.25.0 Rakefile
specinfra-1.24.0 Rakefile
specinfra-1.23.1 Rakefile
specinfra-1.23.0 Rakefile
specinfra-1.22.1 Rakefile