deploy_pin 1.7.3 → 1.7.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e87d64a7e5ec829127f031b66d3ef68f14483d3f44d8ca6dd1c23a7d6defcdf8
|
4
|
+
data.tar.gz: e7a263cc89bdba41ab34eb7b90a0ac4bb38e7f0936a8684af965f31fbce0bb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f4d72a7c7856f3b6d1bfc70c4a1f0992eb3f8f0b956c4044c203d172bb57578b731292b664345627c925a9e77c9d73d082ae281941bf2312f1d431aeb4720a
|
7
|
+
data.tar.gz: 1e8b9d6c4591e65ff806b4a7d80289640a861a49156676606d54a29b050c8f598c1d5b36499db184fa7f41bfe659cea72937d21420eeaa7935d7c63834b6fdd7
|
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 `
|
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.
|
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
|
data/lib/deploy_pin/version.rb
CHANGED
@@ -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,13 @@ 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
|
+
|
40
|
+
return if DeployPin.groups.include?(options[:group])
|
41
|
+
|
42
|
+
raise Thor::Error, set_color("Group '#{options[:group]}' is not defined in DeployPin.groups", :red)
|
43
|
+
end
|
29
44
|
end
|
30
45
|
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:
|
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:
|
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.
|
4
|
+
version: 1.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Viktor Sych
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
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.
|
282
|
+
rubygems_version: 3.6.7
|
283
283
|
specification_version: 4
|
284
284
|
summary: pin some task around deployment
|
285
285
|
test_files: []
|