Sha256: 242ca247b14075931d081e7c9ee38cf8a9ba930e0530d72f391c19a7e8c506a1

Contents?: true

Size: 431 Bytes

Versions: 11

Compression:

Stored size: 431 Bytes

Contents

class Subspace::Commands::Provision < Subspace::Commands::Base
  PASS_THROUGH_PARAMS = ["tags", "start-at-task", "private-key", "limit"]

  def initialize(args, options)
    @environment = args.first
    @options = options
    run
  end

  def run
    ansible_options = ["--diff"]
    ansible_options = ansible_options | pass_through_params
    ansible_command "ansible-playbook", "#{@environment}.yml", *ansible_options
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
subspace-2.4.2 lib/subspace/commands/provision.rb
subspace-2.4.1 lib/subspace/commands/provision.rb
subspace-2.4.0 lib/subspace/commands/provision.rb
subspace-2.3.3 lib/subspace/commands/provision.rb
subspace-2.3.2 lib/subspace/commands/provision.rb
subspace-2.3.1 lib/subspace/commands/provision.rb
subspace-2.3.0 lib/subspace/commands/provision.rb
subspace-2.2.3 lib/subspace/commands/provision.rb
subspace-2.2.2 lib/subspace/commands/provision.rb
subspace-2.2.1 lib/subspace/commands/provision.rb
subspace-2.2.0 lib/subspace/commands/provision.rb