pec2 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/lib/pec2/core.rb +4 -1
- data/lib/pec2/version.rb +1 -1
- data/pec2.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5939af198e2064ecf5bb97b374cf95e2b624b52
|
4
|
+
data.tar.gz: b13b646042cad84b59e5b13b057479d36ae51f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c48975914c130cfd41ef8ba83ad768a680f06a5679749eb91d1e3900e03ec2101e2b73fd13b9b07c891747bd0786b5089b48fddc82c77f819e622f28c54d055
|
7
|
+
data.tar.gz: d0680aaa73780c4aa460d1f3a677a7bd3fe5f1a4ae8fdd26c8a8db195ab533386760a79f4dced635718489b2a0af2942567bb9960782e07594f640de9b340cd4
|
data/README.md
CHANGED
@@ -6,8 +6,15 @@ TODO: Description
|
|
6
6
|
|
7
7
|
## Examples
|
8
8
|
|
9
|
-
$ pec2
|
10
|
-
|
9
|
+
$ bundle exec pec2 -t Project:project_a Stages:production -c 'hostname'
|
10
|
+
|
11
|
+
## sudo Examples
|
12
|
+
|
13
|
+
$ bundle exec pec2 -t Project:project_a Stages:production -c 'sudo hostname' -P -s XXXXXXX
|
14
|
+
|
15
|
+
## sudo Examples
|
16
|
+
|
17
|
+
$ bundle exec pec2 -t Project:embulk Stages:production -c 'hostname' -P -p 150
|
11
18
|
|
12
19
|
## Installation
|
13
20
|
|
data/lib/pec2/core.rb
CHANGED
@@ -5,6 +5,9 @@ require 'open-uri'
|
|
5
5
|
require 'json'
|
6
6
|
require 'timeout'
|
7
7
|
|
8
|
+
class Pec2Mash < Hashie::Mash
|
9
|
+
disable_warnings
|
10
|
+
end
|
8
11
|
|
9
12
|
module Pec2
|
10
13
|
class Core
|
@@ -23,7 +26,7 @@ module Pec2
|
|
23
26
|
filter << { name: 'instance-state-name', values: ['running'] }
|
24
27
|
@ec2.describe_instances(
|
25
28
|
filters: filter
|
26
|
-
).data.to_h[:reservations].map { |instance|
|
29
|
+
).data.to_h[:reservations].map { |instance| Pec2Mash.new(instance[:instances].first) }
|
27
30
|
end
|
28
31
|
|
29
32
|
def get_document
|
data/lib/pec2/version.rb
CHANGED
data/pec2.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.add_dependency 'thor'
|
20
|
+
gem.add_dependency 'thor'
|
21
21
|
gem.add_dependency 'aws-sdk'
|
22
22
|
gem.add_dependency 'hashie'
|
23
23
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toyama0919
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '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: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|