deploy_pin 1.7.3 → 1.7.4

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
  SHA256:
3
- metadata.gz: bbad45594241ef2a7613489332a0efcd0604c58c30775e53027603b58059fd34
4
- data.tar.gz: 24a5638349e03c92b567bb4c6e48f028c1df0129ddedfe9b4705d20036954817
3
+ metadata.gz: '09af17d02f0db287f35f26055d704d2a144f729b28ede019c38f59634e6889bc'
4
+ data.tar.gz: 16af3cdb5388b1b6373eb0ef1a7a76ad6990dc0b624d64588edadd6ef0de2716
5
5
  SHA512:
6
- metadata.gz: 14fef9659762d17bbdf5c721090417da057acad42d0cd235aa324ca85a635857a327db5fb3242a0bcac9e3988d114c8ca5fe08819ca9a466694c9209ae20df7f
7
- data.tar.gz: 13b62e5697393d56efd1903713805770099d80b5e7668b81a723e42ede661fc3fd9643cde7ff4e0359d035def86cb1cac4873083dc988739f0733d1589221536
6
+ metadata.gz: 8acff2d3e99397dc4fe3180d627d84879413f9275aab75ac516b1ac921e762ffd3764cba986b0495edfde9c1d3ea1a41771c80ae0888b7880e5be4c412c81030
7
+ data.tar.gz: 38c5094e1ba24ed3f3d8c33da1198abf4ac59dce7a5f8d8d731562de0934af565683e47d0201a82b56bd1078a031204656c6295519beaf52d7effa5aa6c4e5ce
data/README.md CHANGED
@@ -143,7 +143,7 @@ Check the documentation [here](lib/deploy_pin/parallel_wrapper.rb) for more deta
143
143
 
144
144
  ## Formatting
145
145
 
146
- `run_formatter` is used to format the output of a `run` task, `list_formatter` for the `list` task and `list_short_formatter` is used to format the output of a `short_list` task. To set a default value, you should define it in the deploy_pin initializer:
146
+ `run_formatter` is used to format the output of a `run` task, `list_formatter` for the `list` task and `short_list_formatter` is used to format the output of a `short_list` task. To set a default value, you should define it in the deploy_pin initializer:
147
147
 
148
148
  ```ruby
149
149
  # config/initializers/deploy_pin.rb
@@ -247,7 +247,7 @@ DeployPin.pending_deployment?
247
247
 
248
248
  Around the deployment
249
249
  ```bash
250
- bundle exec rake deploy_pin:run[I, II, III] - # enters to ongoing state before "I" and leaves it after "III" so all tasks in I, II, III have DeployPin.oingoing_deployment? == true
250
+ bundle exec rake deploy_pin:run[I, II, III] - # enters to ongoing state before "I" and leaves it after "III" so all tasks in I, II, III have DeployPin.ongoing_deployment? == true
251
251
  bundle exec rake deploy_pin:run[rollback] - # enters "pending state"
252
252
  ```
253
253
  ## Similar Gems
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeployPin
4
- VERSION = '1.7.3'
4
+ VERSION = '1.7.4'
5
5
  end
@@ -12,6 +12,13 @@ module DeployPin
12
12
  source_root File.expand_path('templates', __dir__)
13
13
 
14
14
  desc 'This generator creates deploy_pin task at lib/deploy_pin/'
15
+
16
+ def initialize(*args)
17
+ super
18
+
19
+ validate
20
+ end
21
+
15
22
  def create_task_file
16
23
  template_file = if options[:parallel]
17
24
  'parallel_task.rb.erb'
@@ -26,5 +33,9 @@ module DeployPin
26
33
  filename = @recurring ? "r_#{@identifier}_#{title}.rb" : "#{@identifier}_#{title}.rb"
27
34
  template template_file, "#{DeployPin.tasks_path}/#{filename}"
28
35
  end
36
+
37
+ def validate
38
+ raise Thor::Error, set_color('Missing required option: --group', :red) if options[:group].blank?
39
+ end
29
40
  end
30
41
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  # <%= @identifier %>:<%= @group %><%= @recurring ? ":recurring" : "" %>
4
4
  # task_title: <%= @author ? "@#{@author} #{title.titleize}" : "#{title.titleize}" %>
5
- # affected_areas: none
5
+ # affected_areas: Please, provide a list of affected areas.
6
6
 
7
7
  # === parallel task code goes down here ===
8
8
  10.times { DeployPin::Record.create(uuid: "hello") }
@@ -2,7 +2,7 @@
2
2
 
3
3
  # <%= @identifier %>:<%= @group %><%= @recurring ? ":recurring" : "" %>
4
4
  # task_title: <%= @author ? "@#{@author} #{title.titleize}" : "#{title.titleize}" %>
5
- # affected_areas: none
5
+ # affected_areas: Please, provide a list of affected areas.
6
6
 
7
7
  # === task code goes down here ===
8
8
  progressbar = ProgressBar.create(title: "Doing stuff", total: 20, format: '%t |%E | %B | %a')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_pin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor Sych
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: colorize
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.6.2
282
+ rubygems_version: 3.6.7
283
283
  specification_version: 4
284
284
  summary: pin some task around deployment
285
285
  test_files: []