Sha256: 63e33a7160cfc8b28fdb6b56ed1475c8dd7bc00e9b0c4cd284e72b18411d4fe9
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
module Subspace module Commands module Ansible 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 def update_ansible_cfg if !ENV["DISABLE_MITOGEN"] && `pip show mitogen 2>&1` =~ /^Location: (.*?)$/m @mitogen_path = $1 puts "πππ Mitogen found at #{@mitogen_path}. WARP 9!....ENGAGE!π" else puts "Mitogen not detected. Ansible will be slow. Run `pip install mitogen` to fix." end template! "ansible.cfg" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subspace-2.5.10 | lib/subspace/commands/ansible.rb |
subspace-2.5.9 | lib/subspace/commands/ansible.rb |