Sha256: c100115c9e28af9eeadfe80efa6e286ee450b19c20fdbc6d924b4dca0eea10b5

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

namespace :provision do
  # Using staging as an environment is deprecated,
  # but some older projects still use it.
  [:production, :qa, :dev, :staging].each do |env|
    desc "Provision #{env} server"
    task env do
      Dir.chdir "config/provision" do
        system "ansible-playbook #{env}.yml"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
subspace-0.1.3 lib/tasks/provision.rake
subspace-0.1.2 lib/tasks/provision.rake
subspace-0.1.1 lib/tasks/provision.rake