rops 1.0.6 → 1.0.7

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/rops +4 -4
  4. data/lib/deployer.rb +2 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b842710deb5849c4ee8342b766505a55c8e6778db4afbb79c6fa20768d6e43c
4
- data.tar.gz: fe1df084466ab6019f9f85ba958ecda306f44757ff505ede0b8867f639e86706
3
+ metadata.gz: 78cb1cdfa255b9f24c33cce2dafaaad811526e980fb28df95939024e04ec8324
4
+ data.tar.gz: c20c8891b751fa8d7a75103d3ed4516920fbbb7ac91e52020f8a35cdb3fddbe7
5
5
  SHA512:
6
- metadata.gz: 5039b8251bb501bd3ac8c4006ae82f23d998e2dc57c6a7c0e579c55d62140a2e9f517a3a3c61d373b30c5ed3211c90f035d86b91fca5d65fd765d883095d2ba0
7
- data.tar.gz: 88fc34f86355c4c2917c916712ca1e3bbd7077c736e66a56081b4b9517d6ef646f022143732374d1fe1540110935f7fd8e7e6ff79f3c01d82dfc9d5ca57fed7f
6
+ metadata.gz: 2add816686a5d4a0e2a94ca1d342af659ba0963e8df4fb2b7e167a4d774ce3696697bfd9467793bb65c14b7c58285516ba6c717891c9a5c58257bc23bf85d7c7
7
+ data.tar.gz: 1697452d48bbd3cd5ed1501380ba5cb7956474b0aca3b4c2c0a15b2d86d28fa592a2f7a5baf3958e1411d2d5cf81ad30886fe3da21baf6735fb61692b6832049
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rops (1.0.6)
4
+ rops (1.0.7)
5
5
  activesupport (~> 6.1.4)
6
6
  dry-cli (~> 0.7.0)
7
7
  git (~> 1.9.1)
data/bin/rops CHANGED
@@ -150,8 +150,8 @@ module Record360
150
150
  end
151
151
 
152
152
  class BuildImage < Dry::CLI::Command
153
- desc "Build the docker image" #" (COMMIT=#{DEFAULT_COMMIT})"
154
- argument :branch, desc: "Branch (or commit) to build" #, default: DEFAULT_COMMIT
153
+ desc "Build the docker image"
154
+ argument :branch, desc: "Branch (or commit) to build"
155
155
  include Common
156
156
 
157
157
  def call(**)
@@ -222,10 +222,10 @@ module Record360
222
222
  end
223
223
 
224
224
  if $stdout.tty?
225
- print "Deploy #{branch} (#{image_tag}) to #{context}? (y/N): "
225
+ print "Deploy #{deployer.branch} (#{image_tag}) to #{context}? (y/N): "
226
226
  exit(-1) unless $stdin.gets&.chomp == 'y'
227
227
  else
228
- puts "Deploying #{branch} (#{image_tag}) to #{context}"
228
+ puts "Deploying #{deployer.branch} (#{image_tag}) to #{context}"
229
229
  end
230
230
 
231
231
  deployer.deploy!(context)
data/lib/deployer.rb CHANGED
@@ -44,8 +44,8 @@ class Deployer
44
44
 
45
45
  short_id = @commit[0, 8]
46
46
  @image_tag = "g#{short_id}"
47
- if branch.present? && (branch != default_branch) && !branch.start_with?(short_id)
48
- @image_tag += "-#{branch}"
47
+ if (@branch != default_branch) && !@branch.start_with?(short_id)
48
+ @image_tag += "-#{@branch}"
49
49
  end
50
50
  images.each do |image|
51
51
  image.commit = commit
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli