Sha256: 4c65717d1b35f5131600d75e4741ba753878cfc887ae3935a6e7d757b9eefd1b

Contents?: true

Size: 654 Bytes

Versions: 1

Compression:

Stored size: 654 Bytes

Contents

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

task :spec    => 'spec:all'
task :default => :spec

namespace :spec do
  targets = []
  Dir.glob('./spec/*').each do |dir|
    next unless File.directory?(dir)
    targets << File.basename(dir)
  end
  platforms = %w[sl6]

  task :all     => targets
  task :default => :all

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-rtn_php_nabe-0.0.1 Rakefile