ansible_eyc_inventory 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b12a2ca13744a4d7ad0257aca30e010e9136e74
4
- data.tar.gz: d854af1b2c2afc2191f58df32b319a7b18fc013e
3
+ metadata.gz: 354f9bf98d82be58b3ce33a514e2221f76393b06
4
+ data.tar.gz: 081d312fd9a64bc3d654a85b7428115570bd781a
5
5
  SHA512:
6
- metadata.gz: 8f31c6750c6fa5ab58cb97d790d0ee6e8c7c7169d8118a266406821fdbf6b9135eeaae62d4525626f3da5efcf84f404e0a5411ac2c9519af12c13ea2ba6af0ec
7
- data.tar.gz: a954f73c8588c4a370b03507a4289fbbe16fc8d231986f00f3121d63db6600d4bbcf4fabb0018bb5fd48b1b1caf566fd2e25d8fa98c5f755b8ff3b50515cfb88
6
+ metadata.gz: 6c1d98fe7e11546f81ad85856cb428d039680463de7fb6a65b6f148836f7178cca795e594d8b8479d15f189e15b0afd17485ffbdd516ef7f514fe7349d9dcc85
7
+ data.tar.gz: 89a57db8c238e46126a9985fc5a4149c85798b67776427a17f29c0c706732d4861d48c39250f3e98a3320cf16188b268d1fde64c4c94138e98d8669de614958b
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Engine Yard Cloud Dynamic Inventory Script for Ansible
1
+ # ansible_eyc_inventory
2
+
3
+ Ansible dynamic inventory script generator for Engine Yard Cloud.
2
4
 
3
5
  ## Installation
4
6
 
@@ -10,6 +12,17 @@ $ gem install ansible_eyc_inventory
10
12
 
11
13
  ```
12
14
  $ ansible_eyc_inventory
15
+
16
+ 1 ursm / foo
17
+
18
+ Choose an application: [1] 1
19
+ create inventory/eyc_foo_production
20
+ chmod inventory/eyc_foo_production
21
+ $ ansible all -i inventory/eyc_foo_production -m ping
22
+ ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com | success >> {
23
+ "changed": false,
24
+ "ping": "pong"
25
+ }
13
26
  ```
14
27
 
15
28
  ## Contributing
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = AnsibleEYCInventory::VERSION
8
8
  spec.authors = ['Keita Urashima']
9
9
  spec.email = ['ursm@ursm.jp']
10
- spec.summary = 'Engine Yard Cloud dynamic inventory script for Ansible'
10
+ spec.summary = 'Ansible dynamic inventory script generator for Engine Yard Cloud'
11
11
  spec.homepage = 'https://github.com/ursm/ansible_eyc_inventory'
12
12
  spec.license = 'MIT'
13
13
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r(^(test|spec|features)/))
17
17
  spec.require_paths = ['lib']
18
18
 
19
- spec.add_runtime_dependency 'engineyard-cloud-client'
19
+ spec.add_runtime_dependency 'engineyard-cloud-client', '>= 2.0.0'
20
20
  spec.add_runtime_dependency 'thor'
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 1.6'
@@ -33,14 +33,14 @@ module AnsibleEYCInventory
33
33
  say
34
34
 
35
35
  print_table apps.map.with_index(1) {|app, i|
36
- [i, app.hierarchy_name, app.app_type_id]
37
- }.unshift([nil, 'Name', 'Type'])
36
+ [i, app.hierarchy_name]
37
+ }
38
38
 
39
39
  say
40
40
 
41
- index = ask('Choose an application:', limited_to: 1.upto(apps.size).map(&:to_s))
41
+ chosen = ask('Choose an application:', limited_to: 1.upto(apps.size).map(&:to_s))
42
42
 
43
- apps[index.to_i.pred]
43
+ apps[chosen.to_i.pred]
44
44
  end
45
45
  end
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module AnsibleEYCInventory
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible_eyc_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Urashima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-23 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: engineyard-cloud-client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ rubyforge_project:
126
126
  rubygems_version: 2.2.2
127
127
  signing_key:
128
128
  specification_version: 4
129
- summary: Engine Yard Cloud dynamic inventory script for Ansible
129
+ summary: Ansible dynamic inventory script generator for Engine Yard Cloud
130
130
  test_files:
131
131
  - spec/ansible_eyc_inventory_spec.rb
132
132
  - spec/spec_helper.rb