aerosol 1.9.2 → 1.10.0
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 +5 -5
- data/.github/workflows/unit_test.yml +31 -0
- data/.gitignore +2 -0
- data/README.md +1 -2
- data/aerosol.gemspec +3 -3
- data/lib/aerosol/launch_template.rb +1 -1
- data/lib/aerosol/version.rb +1 -1
- data/spec/aerosol/auto_scaling_spec.rb +5 -3
- data/spec/aerosol/cli_spec.rb +1 -1
- data/spec/aerosol/deploy_spec.rb +13 -6
- data/spec/aerosol/launch_configuration_spec.rb +5 -3
- data/spec/aerosol/launch_template_spec.rb +5 -3
- data/spec/aerosol/runner_spec.rb +1 -1
- metadata +16 -14
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8743c2772be4ced4908e79d58b495dc040f9a00a
|
4
|
+
data.tar.gz: 381431aa30ee0f28ed00baf8bcc17da47de3f824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb227893206994a0a1df737c0c08a9f77353df2773c2a7e2b18e3eb04175ea95e32d567729a2d02fecf60b78eb07652d3faff6528a378f22801db3d796a8a800
|
7
|
+
data.tar.gz: 444a844c3f2038b8fe2ad382b88c227802937c02bf92f53dcaa72b01023d9b5ff67aa6a177510dca94613b99a33c654d9dbe403c69683c79f97daa4f468b51c7
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Unit Tests
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
docker-rspec:
|
5
|
+
runs-on:
|
6
|
+
- ubuntu-18.04
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
ruby:
|
10
|
+
- 2.7
|
11
|
+
- 2.2
|
12
|
+
- 2.1
|
13
|
+
fail-fast: true
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
with:
|
17
|
+
fetch-depth: 0
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
- name: install bundler
|
22
|
+
run: |
|
23
|
+
gem install bundler -v '~> 1.17.3'
|
24
|
+
bundle update
|
25
|
+
- name: install rpm
|
26
|
+
run: |
|
27
|
+
set -x
|
28
|
+
sudo apt-get update -y
|
29
|
+
sudo apt-get install -y rpm
|
30
|
+
- name: spec tests
|
31
|
+
run: CI=true bundle exec rake
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
[](http://badge.fury.io/rb/aerosol)
|
2
|
-
[](https://travis-ci.org/swipely/aerosol)
|
3
2
|
|
4
|
-

|
5
4
|
=========================================================================
|
6
5
|
|
7
6
|
Aerosol orchestrates instance-based-deploys. Start new EC2 instances running your app every release, using auto scaling groups to orchestrate the startup of the new version and the graceful shutdown of the old version.
|
data/aerosol.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = %w{tomhulihan@swipely.com bright@swipely.com toddlunter@swipely.com}
|
7
7
|
gem.description = %q{Instance-based deploys made easy}
|
8
8
|
gem.summary = %q{Instance-based deploys made easy}
|
9
|
-
gem.homepage = "https://github.com/
|
9
|
+
gem.homepage = "https://github.com/upserve/aerosol"
|
10
10
|
gem.license = 'MIT'
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($\)
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = %w{lib}
|
17
17
|
gem.version = Aerosol::VERSION
|
18
18
|
gem.add_dependency 'activerecord', '>= 3.2.0'
|
19
|
-
gem.add_dependency 'clamp', '~>
|
19
|
+
gem.add_dependency 'clamp', '~> 1'
|
20
20
|
gem.add_dependency 'excon'
|
21
21
|
gem.add_dependency 'aws-sdk-core', '~> 3'
|
22
22
|
gem.add_dependency 'aws-sdk-s3', '~> 1'
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |gem|
|
|
29
29
|
gem.add_development_dependency 'cane'
|
30
30
|
gem.add_development_dependency 'pry'
|
31
31
|
gem.add_development_dependency 'rake', '~> 10.0'
|
32
|
-
gem.add_development_dependency 'rspec', '
|
32
|
+
gem.add_development_dependency 'rspec', '~> 3'
|
33
33
|
gem.add_development_dependency 'webmock'
|
34
34
|
gem.add_development_dependency 'vcr'
|
35
35
|
end
|
data/lib/aerosol/version.rb
CHANGED
@@ -212,7 +212,7 @@ describe Aerosol::AutoScaling do
|
|
212
212
|
}],
|
213
213
|
next_token: nil
|
214
214
|
})
|
215
|
-
subject.exists?('test').should
|
215
|
+
subject.exists?('test').should be true
|
216
216
|
end
|
217
217
|
end
|
218
218
|
|
@@ -226,7 +226,7 @@ describe Aerosol::AutoScaling do
|
|
226
226
|
end
|
227
227
|
|
228
228
|
it 'returns false' do
|
229
|
-
subject.exists?('does-not-exist').should
|
229
|
+
subject.exists?('does-not-exist').should be false
|
230
230
|
end
|
231
231
|
end
|
232
232
|
end
|
@@ -303,7 +303,9 @@ describe Aerosol::AutoScaling do
|
|
303
303
|
{ auto_scaling_groups: [], next_token: nil }
|
304
304
|
])
|
305
305
|
end
|
306
|
-
|
306
|
+
it 'is empty' do
|
307
|
+
expect(subject.all).to be_empty
|
308
|
+
end
|
307
309
|
end
|
308
310
|
|
309
311
|
context 'when there are auto scaling groups' do
|
data/spec/aerosol/cli_spec.rb
CHANGED
data/spec/aerosol/deploy_spec.rb
CHANGED
@@ -10,13 +10,16 @@ describe Aerosol::Deploy do
|
|
10
10
|
|
11
11
|
describe '#migration' do
|
12
12
|
context 'by default' do
|
13
|
-
|
13
|
+
it 'is true' do
|
14
|
+
expect(subject.migrate?).to be true
|
15
|
+
end
|
14
16
|
end
|
15
17
|
|
16
18
|
context 'when do_not_migrate! has been called' do
|
17
19
|
before { subject.do_not_migrate! }
|
18
|
-
|
19
|
-
|
20
|
+
it 'is false' do
|
21
|
+
expect(subject.migrate?).to be false
|
22
|
+
end
|
20
23
|
end
|
21
24
|
end
|
22
25
|
|
@@ -80,7 +83,7 @@ describe Aerosol::Deploy do
|
|
80
83
|
end
|
81
84
|
|
82
85
|
it "returns true" do
|
83
|
-
expect(subject.run_post_deploy).to
|
86
|
+
expect(subject.run_post_deploy).to be true
|
84
87
|
end
|
85
88
|
end
|
86
89
|
|
@@ -98,7 +101,9 @@ describe Aerosol::Deploy do
|
|
98
101
|
|
99
102
|
describe '#local_ssh_ref' do
|
100
103
|
context 'when there is no local_ssh' do
|
101
|
-
|
104
|
+
it 'is ssh' do
|
105
|
+
expect(subject.local_ssh_ref).to eq(ssh)
|
106
|
+
end
|
102
107
|
end
|
103
108
|
|
104
109
|
context 'when there is a local_ssh' do
|
@@ -107,7 +112,9 @@ describe Aerosol::Deploy do
|
|
107
112
|
subject.stub(:local_ssh).and_return(local_ssh)
|
108
113
|
end
|
109
114
|
|
110
|
-
|
115
|
+
it 'is ssh' do
|
116
|
+
expect(subject.local_ssh_ref).to eq(local_ssh)
|
117
|
+
end
|
111
118
|
end
|
112
119
|
end
|
113
120
|
|
@@ -242,7 +242,7 @@ describe Aerosol::LaunchConfiguration do
|
|
242
242
|
}],
|
243
243
|
next_token: nil
|
244
244
|
})
|
245
|
-
subject.exists?(instance.launch_configuration_name).should
|
245
|
+
subject.exists?(instance.launch_configuration_name).should be true
|
246
246
|
end
|
247
247
|
end
|
248
248
|
|
@@ -254,7 +254,7 @@ describe Aerosol::LaunchConfiguration do
|
|
254
254
|
launch_configurations: [],
|
255
255
|
next_token: nil
|
256
256
|
})
|
257
|
-
subject.exists?(instance.launch_configuration_name).should
|
257
|
+
subject.exists?(instance.launch_configuration_name).should be false
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end
|
@@ -310,7 +310,9 @@ describe Aerosol::LaunchConfiguration do
|
|
310
310
|
{ launch_configurations: [], next_token: nil }
|
311
311
|
])
|
312
312
|
end
|
313
|
-
|
313
|
+
it "is empty" do
|
314
|
+
expect(subject.all).to be_empty
|
315
|
+
end
|
314
316
|
end
|
315
317
|
|
316
318
|
context 'when there are launch configurations' do
|
@@ -233,7 +233,7 @@ describe Aerosol::LaunchTemplate do
|
|
233
233
|
}],
|
234
234
|
next_token: nil
|
235
235
|
})
|
236
|
-
subject.exists?(instance.launch_template_name).should
|
236
|
+
subject.exists?(instance.launch_template_name).should be true
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
@@ -245,7 +245,7 @@ describe Aerosol::LaunchTemplate do
|
|
245
245
|
launch_templates: [],
|
246
246
|
next_token: nil
|
247
247
|
})
|
248
|
-
subject.exists?(instance.launch_template_name).should
|
248
|
+
subject.exists?(instance.launch_template_name).should be false
|
249
249
|
end
|
250
250
|
end
|
251
251
|
end
|
@@ -283,7 +283,9 @@ describe Aerosol::LaunchTemplate do
|
|
283
283
|
{ launch_templates: [], next_token: nil }
|
284
284
|
])
|
285
285
|
end
|
286
|
-
|
286
|
+
it 'is empty' do
|
287
|
+
expect(subject.all).to be_empty
|
288
|
+
end
|
287
289
|
end
|
288
290
|
|
289
291
|
context 'when there are launch templates' do
|
data/spec/aerosol/runner_spec.rb
CHANGED
@@ -90,7 +90,7 @@ describe Aerosol::Runner do
|
|
90
90
|
ERB.stub_chain(:new, :result)
|
91
91
|
YAML.stub(:load).and_return(conf)
|
92
92
|
deploy.stub_chain(:migration_ssh, :with_connection).and_yield(session)
|
93
|
-
Process.stub(:waitpid).and_return
|
93
|
+
Process.stub(:waitpid).and_return(1)
|
94
94
|
Process::Status.any_instance.stub(:exitstatus) { 0 }
|
95
95
|
session.stub(:loop).and_yield
|
96
96
|
end
|
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.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: excon
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,16 +210,16 @@ dependencies:
|
|
210
210
|
name: rspec
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '3
|
215
|
+
version: '3'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '3
|
222
|
+
version: '3'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: webmock
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -259,9 +259,9 @@ extensions: []
|
|
259
259
|
extra_rdoc_files: []
|
260
260
|
files:
|
261
261
|
- ".cane"
|
262
|
+
- ".github/workflows/unit_test.yml"
|
262
263
|
- ".gitignore"
|
263
264
|
- ".rspec"
|
264
|
-
- ".travis.yml"
|
265
265
|
- Gemfile
|
266
266
|
- LICENSE.txt
|
267
267
|
- README.md
|
@@ -299,11 +299,11 @@ files:
|
|
299
299
|
- spec/aerosol_spec.rb
|
300
300
|
- spec/spec_helper.rb
|
301
301
|
- spec/support/vcr.rb
|
302
|
-
homepage: https://github.com/
|
302
|
+
homepage: https://github.com/upserve/aerosol
|
303
303
|
licenses:
|
304
304
|
- MIT
|
305
305
|
metadata: {}
|
306
|
-
post_install_message:
|
306
|
+
post_install_message:
|
307
307
|
rdoc_options: []
|
308
308
|
require_paths:
|
309
309
|
- lib
|
@@ -318,8 +318,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
|
-
|
322
|
-
|
321
|
+
rubyforge_project:
|
322
|
+
rubygems_version: 2.6.11
|
323
|
+
signing_key:
|
323
324
|
specification_version: 4
|
324
325
|
summary: Instance-based deploys made easy
|
325
326
|
test_files:
|
@@ -337,3 +338,4 @@ test_files:
|
|
337
338
|
- spec/aerosol_spec.rb
|
338
339
|
- spec/spec_helper.rb
|
339
340
|
- spec/support/vcr.rb
|
341
|
+
has_rdoc:
|