ec2-host 0.5.7 → 0.5.8

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: 2c808cf1062f0721b2651fc16795d90eb3f9c01e
4
- data.tar.gz: 5999b43c5ff70e7b337d2cd0f4f5ba8834312f19
3
+ metadata.gz: db94b2e015976ec8abde81cc7446ddf0c6a741ae
4
+ data.tar.gz: 71036104f462964de560c9b55f6ff2093c457354
5
5
  SHA512:
6
- metadata.gz: 0e8ece0aab39ce2e559848e1801798b3ae7ef7d12f8952673528aba9a843fc33e7e24dabf2c4bcb80e4f98651b67b6587c8fcaa35a398be538397ba92cbb5e9e
7
- data.tar.gz: d6447f8aee65065da40db8a6a361ff0a5767141ed0cb992f4e499ee5e9182a649d2a69d429eed9c842ddf890c8453cd2b8805773b5b5db9e85e4ec5168463c53
6
+ metadata.gz: f7d1c1dd28b2f98794e7fed5da8044c02d651928875011f98db65471f3c2cfa493ffd44a3a757088736fc12dcef802b70c8760b4500ae94839d7c34d0ab04bab
7
+ data.tar.gz: 84b5db8644b9ca20100fd11a75aa08e960d14ffa77eea32695ee9dc1768d313d50b49a0e83e741b0f012444d435efb42ace7bc276913f9d940e97d84528de9f5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.5.8 (2017/03/29)
2
+
3
+ Changes:
4
+
5
+ * Avoid no config file error (thanks to bob1983)
6
+
1
7
  # 0.5.7 (2017/01/30)
2
8
 
3
9
  Enhancements:
data/README.md CHANGED
@@ -182,7 +182,7 @@ Install terraform and run to create instances for tests
182
182
  ```
183
183
  $ brew install terraform
184
184
  $ env $(cat .env) terraform plan
185
- $ env ($cat .env) terraform apply
185
+ $ env $(cat .env) terraform apply
186
186
  ```
187
187
 
188
188
  Run test
@@ -129,10 +129,12 @@ class EC2
129
129
  def self.config
130
130
  return @config if @config
131
131
  @config = {}
132
- File.readlines(config_file).each do |line|
133
- next if line.start_with?('#')
134
- key, val = line.chomp.split('=', 2)
135
- @config[key] = val
132
+ if File.exist?(config_file)
133
+ File.readlines(config_file).each do |line|
134
+ next if line.start_with?('#')
135
+ key, val = line.chomp.split('=', 2)
136
+ @config[key] = val
137
+ end
136
138
  end
137
139
  @config
138
140
  end
@@ -1,5 +1,5 @@
1
1
  class EC2
2
2
  class Host
3
- VERSION = '0.5.7'
3
+ VERSION = '0.5.8'
4
4
  end
5
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.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-30 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk