Module: Subspace::Commands::Ansible
- Included in:
- Base
- Defined in:
- lib/subspace/commands/ansible.rb
Instance Method Summary collapse
Instance Method Details
#ansible_command(command, *args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/subspace/commands/ansible.rb', line 9 def ansible_command(command, *args) update_ansible_cfg retval = false Dir.chdir "config/subspace" do say ">> Running #{command} #{args.join(' ')}" retval = system(command, *args, out: $stdout, err: $stderr) say "<< Done" end retval end |
#ansible_playbook(*args) ⇒ Object
4 5 6 7 |
# File 'lib/subspace/commands/ansible.rb', line 4 def ansible_playbook(*args) args.push "--diff" ansible_command("ansible-playbook", *args) end |