Sha256: 105809d3c41cb9961c0e63de7a315298f5cf60471dda69136e553a6c4a94f3c6

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'rake'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

task spec: 'spec:all'
task default: :spec

namespace :spec do
  targets = %w[sl6 ubuntu1404]

  task all: targets
  task default: :all

  targets.each do |target|
    original_target = target == '_default' ? target[1..-1] : target
    desc "Run serverspec tests to #{original_target}"
    RSpec::Core::RakeTask.new(target.to_sym) do |t|
      ENV['TARGET_HOST'] = original_target
      t.pattern = 'spec/*_spec.rb'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-rtn_git-0.1.4 Rakefile