ec2-host 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75292280f46832c3bd111dfd551e7a00f7c27835
4
- data.tar.gz: 3b50f9114115995051b2fcd7a2936c0b6db5aafa
3
+ metadata.gz: 39e4a2fac919c9e5cf6b23be541b7da53956f896
4
+ data.tar.gz: 263d3173a1b304d5485fbff857d82be36568f2b3
5
5
  SHA512:
6
- metadata.gz: 9b66044d377be0f98cbd525b60537861c2b342e753adb8abbb59de2bc5a1fd4b62bc61c18424fc2fc466a555a440e873657e883b52f053ca5e90936aaffe9ff5
7
- data.tar.gz: 4784cd6f17633fc99f8387bed28baa80d011d902eb5144f82c71eff4a78819c0de97724154ce34f620341f654111783658f4c414c19823a7ad60989bd315e7b1
6
+ metadata.gz: 0600f9fe0186ca52f37895f19cdeb9847bcaca97d9248e19fc67c60ef909c651feed5beb34ea4065c6d20f718d4de494d13315d330c98dd0a8b0ff1ce82678d8
7
+ data.tar.gz: 493a74c50c86e98bf2ce0cd601f677e4ca0b83729b6ba2f9dd74982a9822bca9c95deb0e095f9fcb5e628fec4d06088281cca590bd9389b8490cd10ecf78356f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.4.2 (2016/11/28)
2
+
3
+ Enhancements:
4
+
5
+ * Support /etc/default/ec2-host as default
6
+
1
7
  # 0.4.1 (2016/11/24)
2
8
 
3
9
  Enhancements:
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 = '0.4.1'
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
@@ -1,3 +1,4 @@
1
+ require_relative 'ec2/host/version'
1
2
  require_relative 'ec2/host/string_util'
2
3
  require_relative 'ec2/host/hash_util'
3
4
  require_relative 'ec2/host/config'
@@ -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
@@ -0,0 +1,5 @@
1
+ class EC2
2
+ class Host
3
+ VERSION = '0.4.2'
4
+ end
5
+ end
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.1
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-27 00:00:00.000000000 Z
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