build-cloud 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -0
- data/build-cloud.gemspec +1 -1
- data/lib/build-cloud.rb +6 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTBkMTNmNzg0OTkyNjViOTZkNWQxOGM0NjNlNmI5MDZiZWM4Yjg4Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWQ2YTBkZTdlZjAxYTUxMWQwNDg4NzY5YTM1N2MyYTI4YzQ0MDk4Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTVhZjUxYTQ1MDY4OGEzZmI3MzFmZDI1OTBhOTNhNGZlN2Q3NTk3NWIyZTA5
|
10
|
+
ZDUwNDViOGFjNmJmYTE3NjViNzA4ODAyMjcwNjhmMDhiYmQyMzJmMGIzZDlk
|
11
|
+
OTRlMTViMGJlZDhiNzVlNGJjNjdlZGM2ZjNmOTNhMDUxMWU4MGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDFiNDU2MjVjM2U1NjVhZDg2NWEwMGY4MzYzOTFmOTAwODA0NDQ0ZjNmNmY5
|
14
|
+
MTc2OWYzMmEzZWE3NmExMDY5ZWNhMDZhYTVjZWJkNWE2NTgwODZlMDIwZmZj
|
15
|
+
Nzc0ODhlODMyYWI3YjBlOWQwNDVmYThlNzFjMDMxNDlkYTgyMmQ=
|
data/README.md
CHANGED
@@ -22,6 +22,8 @@ See the command line help for `build-cloud`.
|
|
22
22
|
|
23
23
|
## Changelog
|
24
24
|
|
25
|
+
2014-12-01 - version 0.0.8 - when multiple files are passed to `--config`, any top-level elements in the second and subsequent files which are arrays are merged into the arrays from previously read in files. This means, for examples, that you can have lists of instances or security groups in multiple files, and they will all be read in. Previously, subsequent files overwrote what was in previous files. Note that this only applies for top level elements of YAML files which are arrays - the previous overwriting behaviour applies still to strings.
|
26
|
+
|
25
27
|
2014-10-03 - version 0.0.7 - instance creation previously had a 30 second wait to transition from pending to running state. This was insufficient, and has been increased to 60 seconds.
|
26
28
|
|
27
29
|
2014-09-23 - version 0.0.6 - correctly name tags VPCs, and now allows you to refer to the public IP of a network interface (via `:network_interface_public_ip` in a Route 53 record set.
|
data/build-cloud.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "build-cloud"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.8"
|
8
8
|
spec.authors = ["The Scale Factory"]
|
9
9
|
spec.email = ["info@scalefactory.com"]
|
10
10
|
spec.summary = %q{Tools for building resources in AWS}
|
data/lib/build-cloud.rb
CHANGED
@@ -3,6 +3,7 @@ require 'yaml'
|
|
3
3
|
require 'pry'
|
4
4
|
require 'logger'
|
5
5
|
require 'pp'
|
6
|
+
require 'pathname'
|
6
7
|
|
7
8
|
class BuildCloud
|
8
9
|
|
@@ -31,17 +32,15 @@ class BuildCloud
|
|
31
32
|
|
32
33
|
include_files.each do |include_file|
|
33
34
|
|
34
|
-
include_path =
|
35
|
-
if include_file.include? '/'
|
36
|
-
include_path = include_file
|
37
|
-
else
|
38
|
-
include_path = File.join( File.dirname( first_config_file ), include_file)
|
39
|
-
end
|
35
|
+
include_path = Pathname.new(File.join( File.dirname( first_config_file ), include_file)).realpath
|
40
36
|
|
41
37
|
if File.exists?( include_path )
|
42
38
|
@log.info( "Including YAML file #{include_path}" )
|
43
39
|
included_conf = YAML::load( File.open( include_path ) )
|
44
|
-
@config = @config.merge(
|
40
|
+
@config = @config.merge(included_conf) do |keys, oldval, newval|
|
41
|
+
(newval.is_a?(Array) ? (oldval + newval) : (oldval << newval)).uniq
|
42
|
+
end
|
43
|
+
|
45
44
|
end
|
46
45
|
|
47
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Scale Factory
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|