lib/subspace/commands/ansible.rb in subspace-3.0.0.rc1 vs lib/subspace/commands/ansible.rb in subspace-3.0.0
- old
+ new
@@ -1,21 +1,21 @@
module Subspace
module Commands
module Ansible
def ansible_playbook(*args)
args.push "--diff"
- args.push "--private-key"
- args.push "subspace.pem"
ansible_command("ansible-playbook", *args)
end
def ansible_command(command, *args)
update_ansible_cfg
+ retval = false
Dir.chdir "config/subspace" do
say ">> Running #{command} #{args.join(' ')}"
- system(command, *args, out: $stdout, err: $stderr)
+ retval = system(command, *args, out: $stdout, err: $stderr)
say "<< Done"
end
+ retval
end
private
def update_ansible_cfg