Sha256: 374e71699b6024b2fc01547e138b3a0d11d2e6515e0590a584861a7cf601443f

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

Stored size: 603 Bytes

Contents

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

task :spec => "spec:all"

HOSTS = %w(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

5 entries across 5 versions & 4 rubygems

Version Path
itamae-plugin-recipe-omori_gohan-0.0.1 Rakefile
itamae-plugin-recipe-omori_gohan-0.0.1.beta2 Rakefile
itamae-plugin-recipe-git_now-0.1.1 Rakefile
itamae-plugin-recipe-tig-0.1.1 Rakefile
itamae-plugin-recipe-tmux-0.1.2 Rakefile