aerosol 1.3.0 → 1.5.1

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: e06f594fcaf7833e8604356594161d4f73aee045
4
- data.tar.gz: 3be47666d4d53efdfe61b265aaa330e5dea76fd9
3
+ metadata.gz: e44c2af5b56fc29327f30ec3f2c7c79bdbbde1a6
4
+ data.tar.gz: cdaa27889a78ca44b8dd90bb07ab07b590227fa7
5
5
  SHA512:
6
- metadata.gz: 50e43aaa626fdfe146e81b2b3e46871a81ed0349f7f8a7e41218c0dcb62bec57db132480df8f56e51a05f79ffa23abd9cfffcbd6e7647177d425a8eede41477d
7
- data.tar.gz: a40123b77824b0790e2d138916e17a68eb9e9aab363319b04a587832b80883f9a444174208ee6925fec189eec36aa07c6cf8a3bd413ae60e14ae412a2cf64c49
6
+ metadata.gz: a92b079896a367f90f0fd26d76fcba367fa0287e5b9a2e755cc44ecb8705f273e20dffd078aeecc8e7687d0a7e06c4de926ac89fa9934c65fd84a5f4ddcd9455
7
+ data.tar.gz: 8d7da73ca62a28df467a723f578ae0c1ecfe38deb42c2753fc4b36b13b021e02a3c07bedd466d09c862071c97e6cba77644c7ee2ddabb7ce6e6cb40822e82d4b
data/.travis.yml CHANGED
@@ -1,6 +1,11 @@
1
+ sudo: false
2
+ dist: trusty
1
3
  language: ruby
2
4
  rvm:
3
5
  - 1.9.3
4
- - 2.0.0
6
+ - 2.0
7
+ - 2.1
8
+ - 2.2
9
+ cache: bundler
10
+ before_install: gem install bundler
5
11
  script: CI=true bundle exec rake
6
-
@@ -5,7 +5,7 @@ class Aerosol::LaunchConfiguration
5
5
  logger_prefix '[aerosol launch_configuration]'
6
6
  aws_attribute :launch_configuration_name, :image_id, :instance_type, :security_groups, :user_data,
7
7
  :iam_instance_profile, :kernel_id, :key_name, :spot_price, :created_time,
8
- :associate_public_ip_address
8
+ :associate_public_ip_address, :block_device_mappings
9
9
  dsl_attribute :meta_data
10
10
 
11
11
  primary_key :launch_configuration_name
@@ -88,7 +88,8 @@ class Aerosol::LaunchConfiguration
88
88
  "kernel_id" => "#{kernel_id}", \
89
89
  "key_name" => "#{key_name}", \
90
90
  "spot_price" => "#{spot_price}", \
91
- "created_time" => "#{created_time}" \
91
+ "created_time" => "#{created_time}", \
92
+ "block_device_mappings" => #{block_device_mappings}" \
92
93
  }}
93
94
  end
94
95
 
@@ -100,14 +101,15 @@ class Aerosol::LaunchConfiguration
100
101
 
101
102
  private
102
103
  def create_options
103
- { # TODO Add dsl so that 'BlockDeviceMappings' may be specified
104
+ {
104
105
  iam_instance_profile: iam_instance_profile,
105
106
  kernel_id: kernel_id,
106
107
  key_name: key_name,
107
108
  security_groups: security_groups,
108
109
  spot_price: spot_price,
109
110
  user_data: corrected_user_data,
110
- associate_public_ip_address: associate_public_ip_address
111
+ associate_public_ip_address: associate_public_ip_address,
112
+ block_device_mappings: block_device_mappings
111
113
  }.reject { |k, v| v.nil? }
112
114
  end
113
115
 
@@ -1,5 +1,5 @@
1
1
  # Copyright Swipely, Inc. All rights reserved.
2
2
 
3
3
  module Aerosol
4
- VERSION = '1.3.0'
4
+ VERSION = '1.5.1'
5
5
  end
@@ -485,25 +485,29 @@ describe Aerosol::AutoScaling do
485
485
  availability_zone: 'us-east-1a',
486
486
  lifecycle_state: 'InService',
487
487
  health_status: 'GOOD',
488
- launch_configuration_name: launch_configuration.name.to_s
488
+ launch_configuration_name: launch_configuration.name.to_s,
489
+ protected_from_scale_in: false
489
490
  }, {
490
491
  instance_id: 'i-1239014',
491
492
  availability_zone: 'us-east-1a',
492
493
  lifecycle_state: 'InService',
493
494
  health_status: 'GOOD',
494
- launch_configuration_name: launch_configuration.name.to_s
495
+ launch_configuration_name: launch_configuration.name.to_s,
496
+ protected_from_scale_in: false
495
497
  }, {
496
498
  instance_id: 'i-1239015',
497
499
  availability_zone: 'us-east-1a',
498
500
  lifecycle_state: 'InService',
499
501
  health_status: 'GOOD',
500
- launch_configuration_name: launch_configuration.name.to_s
502
+ launch_configuration_name: launch_configuration.name.to_s,
503
+ protected_from_scale_in: false
501
504
  }, {
502
505
  instance_id: 'i-1239016',
503
506
  availability_zone: 'us-east-1a',
504
507
  lifecycle_state: 'InService',
505
508
  health_status: 'GOOD',
506
- launch_configuration_name: launch_configuration.name.to_s
509
+ launch_configuration_name: launch_configuration.name.to_s,
510
+ protected_from_scale_in: false
507
511
  }]
508
512
  }]
509
513
  }
@@ -26,7 +26,8 @@ describe Aerosol::Instance do
26
26
  lifecycle_state: 'InService',
27
27
  health_status: 'GOOD',
28
28
  launch_configuration_name: launch_configuration.launch_configuration_name.to_s,
29
- auto_scaling_group_name: "test-#{i}"
29
+ auto_scaling_group_name: "test-#{i}",
30
+ protected_from_scale_in: false
30
31
  }
31
32
  end
32
33
  })
@@ -49,7 +50,8 @@ describe Aerosol::Instance do
49
50
  lifecycle_state: 'InService',
50
51
  health_status: 'GOOD',
51
52
  launch_configuration_name: launch_configuration.launch_configuration_name.to_s,
52
- auto_scaling_group_name: 'test'
53
+ auto_scaling_group_name: 'test',
54
+ protected_from_scale_in: false
53
55
  }
54
56
  ]
55
57
  })
@@ -186,7 +186,8 @@ describe Aerosol::Runner do
186
186
  launch_configuration_name: "launch_config-#{i+1}",
187
187
  availability_zone: 'us-east-1a',
188
188
  lifecycle_state: 'InService',
189
- health_status: 'Healthy'
189
+ health_status: 'Healthy',
190
+ protected_from_scale_in: false
190
191
  }
191
192
  end,
192
193
  next_token: nil
@@ -524,7 +525,8 @@ describe Aerosol::Runner do
524
525
  auto_scaling_group_name: 'stop_app_launch_config-123456',
525
526
  availability_zone: 'us-east-1a',
526
527
  lifecycle_state: 'InService',
527
- health_status: 'Running'
528
+ health_status: 'Running',
529
+ protected_from_scale_in: false
528
530
  }
529
531
  end
530
532
  })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerosol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.2.2
278
+ rubygems_version: 2.4.5
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Instance-based deploys made easy
@@ -293,4 +293,3 @@ test_files:
293
293
  - spec/aerosol_spec.rb
294
294
  - spec/spec_helper.rb
295
295
  - spec/support/vcr.rb
296
- has_rdoc: