Sha256: b5715dd12b6ffda4b1012220d8d9eeb4b98bed7c8e982826986d42f68d6f214a

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

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

task :spec => "spec:all"

HOSTS = %w(centos65 centos70 debian8)

namespace :spec do
  task :all => HOSTS

  HOSTS.each do |host|
    RSpec::Core::RakeTask.new(host.to_sym) do |t|
      puts "Running tests to #{host} ..."
      ENV["TARGET_HOST"] = host
      t.pattern = "spec/*_spec.rb"
    end
  end
end

namespace :itamae do
  task :all => HOSTS

  HOSTS.each do |host|
    desc "Running itamae to #{host}"
    task host do
      sh "bundle exec itamae ssh --host=#{host} --vagrant --node-yaml=recipes/node.yml recipes/install.rb"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itamae-plugin-recipe-consul-0.1.0.beta1 Rakefile