ec2-host 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/ec2-host.gemspec +3 -1
- data/lib/ec2-host.rb +1 -0
- data/lib/ec2/host/config.rb +1 -1
- data/lib/ec2/host/version.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39e4a2fac919c9e5cf6b23be541b7da53956f896
|
4
|
+
data.tar.gz: 263d3173a1b304d5485fbff857d82be36568f2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0600f9fe0186ca52f37895f19cdeb9847bcaca97d9248e19fc67c60ef909c651feed5beb34ea4065c6d20f718d4de494d13315d330c98dd0a8b0ff1ce82678d8
|
7
|
+
data.tar.gz: 493a74c50c86e98bf2ce0cd601f677e4ca0b83729b6ba2f9dd74982a9822bca9c95deb0e095f9fcb5e628fec4d06088281cca590bd9389b8490cd10ecf78356f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ You can manage roles of a host, and search hosts having a specified role using t
|
|
17
17
|
|
18
18
|
## Configuration
|
19
19
|
|
20
|
-
You can write a configuration file located at `/etc/sysconfig/ec2-host` (You can configure this path by `EC2_HOST_CONFIG_FILE` environment variable), or as environment variables:
|
20
|
+
You can write a configuration file located at `/etc/sysconfig/ec2-host` or `/etc/default/ec2-host` (You can configure this path by `EC2_HOST_CONFIG_FILE` environment variable), or as environment variables:
|
21
21
|
|
22
22
|
AWS SDK (CLI) parameters:
|
23
23
|
|
data/ec2-host.gemspec
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
require_relative 'lib/ec2/host/version'
|
2
|
+
|
1
3
|
Gem::Specification.new do |gem|
|
2
4
|
gem.name = "ec2-host"
|
3
|
-
gem.version =
|
5
|
+
gem.version = EC2::Host::VERSION
|
4
6
|
gem.author = ['Naotoshi Seo']
|
5
7
|
gem.email = ['sonots@gmail.com']
|
6
8
|
gem.homepage = 'https://github.com/sonots/ec2-host'
|
data/lib/ec2-host.rb
CHANGED
data/lib/ec2/host/config.rb
CHANGED
@@ -26,7 +26,7 @@ class EC2
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.config_file
|
29
|
-
@config_file ||= ENV.fetch('EC2_HOST_CONFIG_FILE', '/etc/sysconfig/ec2-host')
|
29
|
+
@config_file ||= ENV.fetch('EC2_HOST_CONFIG_FILE', File.exist?('/etc/sysconfig/ec2-host') ? '/etc/sysconfig/ec2-host' : '/etc/default/ec2-host')
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.aws_region
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ec2-host
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/ec2/host/host_data.rb
|
218
218
|
- lib/ec2/host/role_data.rb
|
219
219
|
- lib/ec2/host/string_util.rb
|
220
|
+
- lib/ec2/host/version.rb
|
220
221
|
- spec/host_spec.rb
|
221
222
|
- spec/spec_helper.rb
|
222
223
|
- terraform.tf
|