stack_car 0.15.0 → 0.16.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
2
  SHA256:
3
- metadata.gz: e6cc442f70a939d0c26964b5b37fab7c115ce5de2c1c7ad2decf317854028b4b
4
- data.tar.gz: a245e1232281276530a1b16be06a2baedf938eb39db836d39786f99cd52a2264
3
+ metadata.gz: f65e5a4cb61c3b0ae89c7a41866723cfb7caf9e1853a566279eb178181746774
4
+ data.tar.gz: 6624f7b9f2bb1dc6faea803a4d8f19cf97fdc03939a90082c20600c4021066f6
5
5
  SHA512:
6
- metadata.gz: 7108eaf37d7a5f0ae241eb6365a93d731329c04cbe13571002894ae4c80192893512dc29a1a32f95dfd15d3309682290682a2efa381b93dcce894c1e551072ae
7
- data.tar.gz: d23c829079977213a1877733c8f814041df4afb258269861311184e5044ded8b5dcda760b31c3ec4a9e6e5ea8f8a23d43f23ad65f385e329271db2b2d50f985b
6
+ metadata.gz: ef5bd6bfac0e8c0301778a79bdb17cb7f23d22cdab0e661d951f734b16de61a69288eb4c923aee552de339811f0a45b55a5645e55042b067e86965cb0421ac30
7
+ data.tar.gz: b7fd067e699c6a93f38d4c384de5f7270b6a7fc61b6e28fce4c380bdf77599e278f57d762e825a80f893fe2c435c73679c7542aff9fee32fe37ebb5fa8c7c702
@@ -0,0 +1,35 @@
1
+ name: Test
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ pull_request:
7
+ branches:
8
+ - main
9
+ jobs:
10
+ rspec:
11
+ name: Run rspec with ruby
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
+ - name: Cache
17
+ uses: actions/cache@v2.1.3
18
+ with:
19
+ path: vendor/bundle
20
+ key: '2.3'
21
+ - name: Setup Ruby
22
+ uses: ruby/setup-ruby@v1.59.1
23
+ with:
24
+ ruby-version: '2.3'
25
+ - name: Dependencies
26
+ run: |
27
+ bundle config path vendor/bundle
28
+ bundle install
29
+ - name: Rspec
30
+ run: 'bundle exec rspec'
31
+ - name: Publish Test Report
32
+ uses: mikepenz/action-junit-report@v3
33
+ if: always() # always run even if the previous step fails
34
+ with:
35
+ report_paths: '**/build/test-results/test/TEST-*.xml'
data/lib/stack_car/cli.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'thor'
2
2
  require 'erb'
3
- require 'dotenv/load'
3
+ require 'dotenv'
4
4
  require 'json'
5
5
  require 'byebug'
6
6
  module StackCar
@@ -166,6 +166,7 @@ module StackCar
166
166
 
167
167
  desc "release ENVIRONTMENT", "tag and push and image to the registry"
168
168
  def release(environment)
169
+ Dotenv.load(".env.#{environment}", '.env')
169
170
  setup
170
171
  timestamp = Time.now.strftime("%Y%m%d%I%M%S")
171
172
  sha = `git rev-parse HEAD`[0..8]
@@ -193,6 +194,7 @@ module StackCar
193
194
 
194
195
  desc "ssh ENVIRONMENT", "log in to a running instance - requires PRODUCTION_SSH to be set"
195
196
  def ssh(environment)
197
+ Dotenv.load(".env.#{environment}", '.env')
196
198
  setup
197
199
  target = ENV["#{environment.upcase}_SSH"]
198
200
  if target
@@ -281,7 +283,7 @@ module StackCar
281
283
  template("solrcloud-upload-configset.sh", "bin/solrcloud-upload-configset.sh")
282
284
  template("solrcloud-assign-configset.sh", "bin/solrcloud-assign-configset.sh")
283
285
  end
284
-
286
+
285
287
  if File.exists?('README.md')
286
288
  prepend_to_file "README.md" do
287
289
  File.read("#{self.class.source_root}/README.md")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StackCar
4
- VERSION = '0.15.0'
4
+ VERSION = '0.16.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_car
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,7 +150,7 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.19'
153
- description:
153
+ description:
154
154
  email:
155
155
  - rob@notch8.com
156
156
  executables:
@@ -159,6 +159,7 @@ executables:
159
159
  extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
+ - ".github/workflows/rspec-action.yaml"
162
163
  - ".gitignore"
163
164
  - ".gitlab-ci.yml"
164
165
  - ".rspec"
@@ -251,7 +252,7 @@ files:
251
252
  homepage: https://gitlab.com/notch8/stack_car
252
253
  licenses: []
253
254
  metadata: {}
254
- post_install_message:
255
+ post_install_message:
255
256
  rdoc_options: []
256
257
  require_paths:
257
258
  - lib
@@ -266,8 +267,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
267
  - !ruby/object:Gem::Version
267
268
  version: '0'
268
269
  requirements: []
269
- rubygems_version: 3.1.4
270
- signing_key:
270
+ rubygems_version: 3.1.6
271
+ signing_key:
271
272
  specification_version: 4
272
273
  summary: A tool to make rails + docker easy
273
274
  test_files: []