Sha256: 86175fd9657feb23fb91679d08c0554495207ab1d881d04baf6b0ab921422b45

Contents?: true

Size: 852 Bytes

Versions: 105

Compression:

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

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

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
specinfra-2.14.4 Rakefile
specinfra-2.14.3 Rakefile
specinfra-2.14.2 Rakefile
specinfra-2.14.1 Rakefile
specinfra-2.14.0 Rakefile
specinfra-2.13.1 Rakefile
specinfra-2.13.0 Rakefile
specinfra-2.12.7 Rakefile
specinfra-2.12.6 Rakefile
specinfra-2.12.5 Rakefile
specinfra-2.12.4 Rakefile
specinfra-2.12.3 Rakefile
specinfra-2.12.1 Rakefile
specinfra-2.12.0 Rakefile
specinfra-2.11.10 Rakefile
specinfra-2.11.9 Rakefile
specinfra-2.11.8 Rakefile
specinfra-2.11.7 Rakefile
specinfra-2.11.6 Rakefile
specinfra-2.11.5 Rakefile