Class: AnsibleEYCInventory::CLI
- Inherits:
-
Thor
- Object
- Thor
- AnsibleEYCInventory::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/ansible_eyc_inventory/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ansible_eyc_inventory/cli.rb', line 15 def generate choose_app.environments.each do |env| dest = "#{[:destdir]}/eyc_#{env.name}" template 'inventory', dest, env_name: env.name, account_name: env.account.name chmod dest, 0755 end rescue Error => e error e. exit 1 end |