odania_ops 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -14
- data/lib/odania_ops/helper/aws.rb +8 -3
- data/lib/odania_ops/version.rb +1 -1
- data/lib/odania_ops.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ba7034d59d9b62a385eb788d4db85afad809c13
|
4
|
+
data.tar.gz: 89537930eb31e127f07d5aeb290de1c04e0f3480
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af46f216705ce6497fab495c3db9e29076db2d8870cfc9ba4b166fbd41509a28777f0ae9a3f4ad7aaad479e6ed37bcab665a047a92d8dfe33d210a6106f8ecf8
|
7
|
+
data.tar.gz: f5efe86f13399e64fd1597cba6bd99134ce4cf4df4ef48571c22f401854b099582069305b71bb800b44e7d2ebbed5229a501ee295d5aef1c3240521b069e81b8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
odania_ops (0.0.
|
4
|
+
odania_ops (0.0.12)
|
5
5
|
activesupport
|
6
6
|
aws-sdk (~> 2)
|
7
7
|
bigdecimal
|
@@ -15,28 +15,27 @@ PATH
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
activesupport (
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
activesupport (4.2.9)
|
20
19
|
i18n (~> 0.7)
|
21
20
|
minitest (~> 5.1)
|
21
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
22
22
|
tzinfo (~> 1.1)
|
23
|
-
aws-sdk (2.10.
|
24
|
-
aws-sdk-resources (= 2.10.
|
25
|
-
aws-sdk-core (2.10.
|
23
|
+
aws-sdk (2.10.16)
|
24
|
+
aws-sdk-resources (= 2.10.16)
|
25
|
+
aws-sdk-core (2.10.16)
|
26
26
|
aws-sigv4 (~> 1.0)
|
27
27
|
jmespath (~> 1.0)
|
28
|
-
aws-sdk-resources (2.10.
|
29
|
-
aws-sdk-core (= 2.10.
|
28
|
+
aws-sdk-resources (2.10.16)
|
29
|
+
aws-sdk-core (= 2.10.16)
|
30
30
|
aws-sigv4 (1.0.1)
|
31
|
-
bigdecimal (1.
|
32
|
-
concurrent-ruby (1.0.5)
|
31
|
+
bigdecimal (1.2.4)
|
33
32
|
deep_merge (1.1.1)
|
34
33
|
docker-api (1.33.6)
|
35
34
|
excon (>= 0.38.0)
|
36
35
|
json
|
37
36
|
erubis (2.7.0)
|
38
|
-
excon (0.
|
39
|
-
httparty (0.15.
|
37
|
+
excon (0.58.0)
|
38
|
+
httparty (0.15.5)
|
40
39
|
multi_xml (>= 0.5.2)
|
41
40
|
i18n (0.8.6)
|
42
41
|
jmespath (1.3.1)
|
@@ -49,7 +48,7 @@ GEM
|
|
49
48
|
sshkit (1.14.0)
|
50
49
|
net-scp (>= 1.1.2)
|
51
50
|
net-ssh (>= 2.8.0)
|
52
|
-
thor (0.
|
51
|
+
thor (0.20.0)
|
53
52
|
thread_safe (0.3.6)
|
54
53
|
tzinfo (1.2.3)
|
55
54
|
thread_safe (~> 0.1)
|
@@ -61,4 +60,4 @@ DEPENDENCIES
|
|
61
60
|
odania_ops!
|
62
61
|
|
63
62
|
BUNDLED WITH
|
64
|
-
1.
|
63
|
+
1.15.4
|
@@ -5,16 +5,21 @@ module OdaniaOps
|
|
5
5
|
module Aws
|
6
6
|
class << self
|
7
7
|
def configure
|
8
|
-
Aws.config.update(
|
8
|
+
::Aws.config.update(
|
9
9
|
{
|
10
10
|
region: $config['aws']['region'],
|
11
|
-
credentials: Aws::Credentials.new($config['aws']['access_key_id'], $config['aws']['secret_access_key'])
|
11
|
+
credentials: ::Aws::Credentials.new($config['aws']['access_key_id'], $config['aws']['secret_access_key'])
|
12
12
|
}
|
13
13
|
)
|
14
14
|
end
|
15
15
|
|
16
16
|
def tags(repository_name)
|
17
|
-
client = Aws::ECR::Client.new
|
17
|
+
client = ::Aws::ECR::Client.new(
|
18
|
+
{
|
19
|
+
region: $config['aws']['region'],
|
20
|
+
credentials: ::Aws::Credentials.new($config['aws']['access_key_id'], $config['aws']['secret_access_key'])
|
21
|
+
}
|
22
|
+
)
|
18
23
|
result = []
|
19
24
|
response = client.describe_images(repository_name: repository_name)
|
20
25
|
response.image_details.each do |aws_image_details|
|
data/lib/odania_ops/version.rb
CHANGED
data/lib/odania_ops.rb
CHANGED
@@ -18,6 +18,7 @@ require_relative 'odania_ops/cli/backup'
|
|
18
18
|
require_relative 'odania_ops/cli/config'
|
19
19
|
require_relative 'odania_ops/cli/docker'
|
20
20
|
require_relative 'odania_ops/cli/node'
|
21
|
+
require_relative 'odania_ops/helper/aws'
|
21
22
|
require_relative 'odania_ops/helper/backup'
|
22
23
|
require_relative 'odania_ops/helper/config'
|
23
24
|
require_relative 'odania_ops/helper/docker'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odania_ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Petersen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|