aerosol 1.9.2 → 1.10.0

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
- SHA256:
3
- metadata.gz: 6d4984e8f3a4ad49c8fcf43ee3f8a46afc0a8ff5a03bc17e0e2a7c5ae51d5ff9
4
- data.tar.gz: 6a02a6faf80b6a0bc3ccb317df748dac95d994f4a0fb146724ed844240727451
2
+ SHA1:
3
+ metadata.gz: 8743c2772be4ced4908e79d58b495dc040f9a00a
4
+ data.tar.gz: 381431aa30ee0f28ed00baf8bcc17da47de3f824
5
5
  SHA512:
6
- metadata.gz: ddb94dbd6f44e8cb419d6051fc0e5855a8bc5bb9ce45de11e35da6600831d0a8f8928990d0429aa6f415b80a91381c4c198a5c1d8a2a341f7ea47992b2417178
7
- data.tar.gz: 5f2488d1ec6336cb2a4a3aea9dadd7ab030b788bfb72fffb8723369857e875ccba832d88ecba070098c750d208de76c74ac5ee9c80cb4879f497e9f829435e0a
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
@@ -12,4 +12,6 @@ Gemfile.lock
12
12
  build/
13
13
  dist/
14
14
 
15
+ .vscode
16
+
15
17
  docker-export-ubuntu-latest.tar.gz
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/aerosol.png)](http://badge.fury.io/rb/aerosol)
2
- [![Build Status](https://travis-ci.org/swipely/aerosol.png)](https://travis-ci.org/swipely/aerosol)
3
2
 
4
- ![Aerosol](https://raw.github.com/swipely/aerosol/master/img/aerosol.png)
3
+ ![Aerosol](https://raw.github.com/upserve/aerosol/master/img/aerosol.png)
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/swipely/aerosol"
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', '~> 0.6'
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', '< 3.0'
32
+ gem.add_development_dependency 'rspec', '~> 3'
33
33
  gem.add_development_dependency 'webmock'
34
34
  gem.add_development_dependency 'vcr'
35
35
  end
@@ -41,7 +41,7 @@ class Aerosol::LaunchTemplate
41
41
  }.merge(create_options)
42
42
  )
43
43
 
44
- info self.inspect
44
+ debug self.inspect
45
45
  end
46
46
 
47
47
  def destroy!
@@ -1,5 +1,5 @@
1
1
  # Copyright Swipely, Inc. All rights reserved.
2
2
 
3
3
  module Aerosol
4
- VERSION = '1.9.2'
4
+ VERSION = '1.10.0'
5
5
  end
@@ -212,7 +212,7 @@ describe Aerosol::AutoScaling do
212
212
  }],
213
213
  next_token: nil
214
214
  })
215
- subject.exists?('test').should be_true
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 be_false
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
- its(:all) { should be_empty }
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
@@ -4,7 +4,7 @@ describe "Aerosol CLI" do
4
4
  describe "running the most basic command" do
5
5
  let(:command) { "./bin/aerosol" }
6
6
  it "should exit with 0" do
7
- expect(system(command)).to be_true
7
+ expect(system(command)).to be true
8
8
  end
9
9
  end
10
10
  end
@@ -10,13 +10,16 @@ describe Aerosol::Deploy do
10
10
 
11
11
  describe '#migration' do
12
12
  context 'by default' do
13
- its(:migrate?) { should be_true }
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
- its(:migrate?) { should be_false }
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 be_true
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
- its(:local_ssh_ref) { should eq(ssh) }
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
- its(:local_ssh_ref) { should eq(local_ssh) }
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 be_true
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 be_false
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
- its(:all) { should be_empty }
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 be_true
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 be_false
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
- its(:all) { should be_empty }
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
@@ -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 { 1 }
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.9.2
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: 2021-04-07 00:00:00.000000000 Z
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: '0.6'
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: '0.6'
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.0'
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.0'
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/swipely/aerosol
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
- rubygems_version: 3.0.3
322
- signing_key:
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:
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- sudo: false
2
- dist: trusty
3
- language: ruby
4
- rvm:
5
- - 2.1
6
- - 2.2
7
- - 2.7
8
- cache: bundler
9
- before_install: gem install bundler -v 1.17.3
10
- script: CI=true bundle exec rake