module Subspace::Commands::Ansible

Public Instance Methods

ansible_command(command, *args) click to toggle source
# File lib/subspace/commands/ansible.rb, line 4
def ansible_command(command, *args)
  update_ansible_cfg
  Dir.chdir "config/provision" do
    say ">> Running #{command} #{args.join(' ')}"
    system(command, *args, out: $stdout, err: $stderr)
    say "<< Done"
  end
end

Private Instance Methods

update_ansible_cfg() click to toggle source
# File lib/subspace/commands/ansible.rb, line 15
def update_ansible_cfg
  template! "ansible.cfg"
end