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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af31d5b5049e0e1b7c044ae4bb6d85ea4ff23a22
4
- data.tar.gz: b3ba11e52366d13a58bcb2aecb9c5fa715ee16ea
3
+ metadata.gz: f5939af198e2064ecf5bb97b374cf95e2b624b52
4
+ data.tar.gz: b13b646042cad84b59e5b13b057479d36ae51f66
5
5
  SHA512:
6
- metadata.gz: 321428bb68278df26eb4c081c3f880d94c4226a67168e52c3dac7482d88f43733de3f346efbb5358c90987aac1fb0b3eaa4687d69c96f234ad21a76a59a99513
7
- data.tar.gz: a26f5d2802c3aa76493b35cce6b319dec407650ed117196df8b7eefc47e3c652f31b190bd34ce2b66bf4e94230b112685134df98efe4f60ef4daae8cfa0f8bf6
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 sample
10
- #=> hoge
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| Hashie::Mash.new(instance[:instances].first) }
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
@@ -1,4 +1,4 @@
1
1
  module Pec2
2
2
  # pec2 version
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
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', '~> 0.19.1'
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.0
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: 2016-12-26 00:00:00.000000000 Z
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.1
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.19.1
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk
29
29
  requirement: !ruby/object:Gem::Requirement