gce-host 0.3.3 → 0.3.4

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: 6ef21bb063baf67ca6ebbd8620a68b5c36d07a02
4
- data.tar.gz: c15e417a245e58a4e96a6ba629195f7f11c9ff23
3
+ metadata.gz: f473115294b06f624354470a0b77ff09e5275f28
4
+ data.tar.gz: f1fdc1d27677d158fa9fa5952bc35a29e91d163e
5
5
  SHA512:
6
- metadata.gz: 0b8cd4fa2a9ebf45b5a1e119ef4df7da5246aa7e7d4b25b788db6449ff601a65ab3518a1656e769fbe63e81ab252e0c6e108d16f74b0efaf9d21866fd5bded0e
7
- data.tar.gz: 4f277937da5b05987d449aebd0e3138c41fcd6484b55adc0d8be6433f0e40a0ea5f309296964daaf4d7ab6ca3d35b8fcffd1076f9a96c8879ef6177ea884e1cd
6
+ metadata.gz: 0cec3a2009fa765ec7e72ca048dcead0d88bb7459a6e765b67be057d4178e2d83ef6b43f3f973e7496aac61c81e8313421d5d836fa46b7d3fb595d24334b4800
7
+ data.tar.gz: 6a69cf30ef0cef6f6326b0858a30dc639e5106781a78640742b4acfb29bf92751d1f39e7fad065a724b69cfdb9b5861a904084eb7e2bb0cd5a79b599690d7893
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.4 (2016/11/28)
2
+
3
+ Enhancements
4
+
5
+ * Support /etc/default/gce-host as default config file location for Ubuntu
6
+
1
7
  # 0.3.3 (2016/11/26)
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/gce-host` (You can configure this path by `GCE_HOST_CONFIG_FILE` environment variable), or as environment variables:
20
+ You can write a configuration file located at `/etc/sysconfig/gce-host` for CentOS, or `/etc/default/gce-host` for Ubuntu (You can configure this path by `GCE_HOST_CONFIG_FILE` environment variable), or as environment variables:
21
21
 
22
22
  GOOGLE API parameters:
23
23
 
@@ -12,7 +12,7 @@ class GCE
12
12
  end
13
13
 
14
14
  def self.config_file
15
- @config_file ||= File.expand_path(ENV.fetch('GCE_HOST_CONFIG_FILE', '/etc/sysconfig/gce-host'))
15
+ @config_file ||= File.expand_path(ENV.fetch('GCE_HOST_CONFIG_FILE', File.exist?('/etc/sysconfig/gce-host') ? '/etc/sysconfig/gce-host' : '/etc/default/gce-host'))
16
16
  end
17
17
 
18
18
  def self.auth_method
@@ -1,5 +1,5 @@
1
1
  class GCE
2
2
  class Host
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gce-host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-26 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: google-api-client