build-cloud 0.0.14 → 0.0.15

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: fd4a20e8b7908bb629714238bea43885797a144d
4
- data.tar.gz: f135d4406e2aa8f7e3577b420ad094371c493623
3
+ metadata.gz: d181ba7cccd9ca15986dfdf6edbfb676233fbb12
4
+ data.tar.gz: 6e4fb65d0d9669b1d8ccff0f18e4e65981cced97
5
5
  SHA512:
6
- metadata.gz: 049623b921bbe636b52a4db50db8b4d1a3f16ea7ead93afe6b987ecf5d5fb5ef017c1eec9e2b54e372acb30aa07f61daca7f64fe475c255ee7976d56978e5e7e
7
- data.tar.gz: 66fb3c83ea5eec6490805e900fe59a2bda165d36c5d67c2304e2e08c974b214a9930486e1e7343c8f3ccd8148010d0bc2cf687ce130090703d7d1140b81a4072
6
+ metadata.gz: a75b937b90c8a53d5c2e4f2486ef3b0c6da68056bf264c1a919c3d34eeb86cdc6811becac4d39436ee410cb1a86df4415bd24834c3acac122715b1d78d9c5990
7
+ data.tar.gz: 760d264891134c408a019339aab87fa084ab1adfbdea3a48de69969189708309350b415fe8c240b49d3132de1ccd4dba04060b044ac2a04174fe06f490629c63
data/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ 2015-11-10 - version 0.0.15 - allow private_ip to be optional when creating an ENI
4
+
5
+ 2015-10-12 - version 0.0.14 - now allows defaults in interpolated variables, if the variable doesn't exist. Format is `%{variablename||default}` eg. `%{node_instance_type||t2.large}`
6
+
7
+ 2015-09-02 - version 0.0.13 - use the same environment variables as AWS SDKs for credentials
8
+
9
+ 2015-08-24 - version 0.0.12 - adds support for tagging network interfaces, permits multiple config files to be passed on the commandline, fixes a bug with S3 buckets named to contain dots.
10
+
11
+ 2015-05-18 - version 0.0.11 - fixed problems with IAM roles
12
+
13
+ 2015-04-14 - version 0.0.10 - adds "lifecycle" functionality for security groups. Existing security groups will now have rules removed from them or added to them to make AWS reflect the YAML passed to build-cloud. Previously, once a security group had been created by build-cloud, it was never subsequently updated.
14
+
15
+ 2014-12-12 - version 0.0.9 - bugfixes to file path resolution. It is worth noting that when multiple files are passed to `--config` they're treated as relative to the CWD - this is what you'd expect from referencing a file in a command line option. When file(s) are specified in an `:include` key in the given YAML file, relative paths given there are considered to be relative to the location of the YAML file given to `--config` - this is to ensure consistent behaviour regardless of what $CWD is when calling build-cloud.
16
+
17
+ 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.
18
+
19
+ 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.
20
+
21
+ 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.
22
+
23
+ 2014-09-16 - version 0.0.5 - now supports creation of DHCP Options Sets, and specifying them using the `:dhcp_options_set_name` key to a VPC.
24
+
25
+ 2014-09-15 - version 0.0.4 - files can now be passed to `--config` with a path. It is no longer assumed that all files will be in the same directory.
26
+
27
+ 2014-09-15 - version 0.0.3 - now accepts multiple files to `--config`. The second and subsequent files are merged into the first YAML file in order, ahead of any files specified in a `:include` list in the first YAML file.
28
+
29
+ 2014-06-23 - version 0.0.2 - now accepts an array of files in the `:include` key in the given YAML config file. The files are merged in to the config file in the order that they are given.
30
+
31
+ 2014-05-27 - version 0.0.1 - initial version.
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( http://github.com/<my-github-username>/build-cloud/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create new Pull Request
data/README.md CHANGED
@@ -20,36 +20,6 @@ Or install it yourself as:
20
20
 
21
21
  See the command line help for `build-cloud`.
22
22
 
23
- ## Changelog
24
-
25
- 2015-10-12 - version 0.0.14 - now allows defaults in interpolated variables, if the variable doesn't exist. Format is `%{variablename||default}` eg. `%{node_instance_type||t2.large}`
26
-
27
- 2015-09-02 - version 0.0.13 - use the same environment variables as AWS SDKs for credentials
28
-
29
- 2015-08-24 - version 0.0.12 - adds support for tagging network interfaces, permits multiple config files to be passed on the commandline, fixes a bug with S3 buckets named to contain dots.
30
-
31
- 2015-05-18 - version 0.0.11 - fixed problems with IAM roles
32
-
33
- 2015-04-14 - version 0.0.10 - adds "lifecycle" functionality for security groups. Existing security groups will now have rules removed from them or added to them to make AWS reflect the YAML passed to build-cloud. Previously, once a security group had been created by build-cloud, it was never subsequently updated.
34
-
35
- 2014-12-12 - version 0.0.9 - bugfixes to file path resolution. It is worth noting that when multiple files are passed to `--config` they're treated as relative to the CWD - this is what you'd expect from referencing a file in a command line option. When file(s) are specified in an `:include` key in the given YAML file, relative paths given there are considered to be relative to the location of the YAML file given to `--config` - this is to ensure consistent behaviour regardless of what $CWD is when calling build-cloud.
36
-
37
- 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.
38
-
39
- 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.
40
-
41
- 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.
42
-
43
- 2014-09-16 - version 0.0.5 - now supports creation of DHCP Options Sets, and specifying them using the `:dhcp_options_set_name` key to a VPC.
44
-
45
- 2014-09-15 - version 0.0.4 - files can now be passed to `--config` with a path. It is no longer assumed that all files will be in the same directory.
46
-
47
- 2014-09-15 - version 0.0.3 - now accepts multiple files to `--config`. The second and subsequent files are merged into the first YAML file in order, ahead of any files specified in a `:include` list in the first YAML file.
48
-
49
- 2014-06-23 - version 0.0.2 - now accepts an array of files in the `:include` key in the given YAML config file. The files are merged in to the config file in the order that they are given.
50
-
51
- 2014-05-27 - version 0.0.1 - initial version.
52
-
53
23
  ## Contributing
54
24
 
55
25
  1. Fork it ( http://github.com/<my-github-username>/build-cloud/fork )
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.14"
7
+ spec.version = "0.0.15"
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}
@@ -30,7 +30,7 @@ class BuildCloud::NetworkInterface
30
30
 
31
31
  @log.debug( options.inspect )
32
32
 
33
- required_options(:name, :private_ip_address)
33
+ required_options(:name)
34
34
  require_one_of(:subnet_id, :subnet_name)
35
35
  require_one_of(:security_groups, :security_group_names)
36
36
 
@@ -40,7 +40,7 @@ class BuildCloud::NetworkInterface
40
40
 
41
41
  return if exists?
42
42
 
43
- @log.info( "Creating network interface #{@options[:private_ip_address]}" )
43
+ @log.info( "Creating network interface #{@options[:name]}" )
44
44
 
45
45
  options = @options.dup
46
46
 
@@ -117,7 +117,7 @@ class BuildCloud::NetworkInterface
117
117
  end
118
118
 
119
119
  def read
120
- @compute.network_interfaces.select { |ni| ni.private_ip_address == @options[:private_ip_address]}.first
120
+ @compute.network_interfaces.select { |ni| ni.description == @options[:name]}.first
121
121
  end
122
122
 
123
123
  alias_method :fog_object, :read
@@ -126,7 +126,7 @@ class BuildCloud::NetworkInterface
126
126
 
127
127
  return unless exists?
128
128
 
129
- @log.info( "Deleting network interface with IP address #{@options[:private_ip_address]}" )
129
+ @log.info( "Deleting network interface #{@options[:name]}" )
130
130
 
131
131
  fog_object.destroy
132
132
 
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.14
4
+ version: 0.0.15
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: 2015-10-12 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - .gitignore
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - LICENSE.txt
80
81
  - README.md