rake_fly 2.5.0 → 2.8.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +37 -30
- data/lib/rake_fly/task_sets/authentication.rb +2 -0
- data/lib/rake_fly/task_sets/pipeline.rb +5 -0
- data/lib/rake_fly/task_sets/project.rb +12 -0
- data/lib/rake_fly/tasks.rb +1 -0
- data/lib/rake_fly/tasks/pipeline/destroy.rb +46 -0
- data/lib/rake_fly/version.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61eb28108b67c5ccc35cb101c4b70e4e9d98cb4cf38e9d79453b5d99e46df9e9
|
4
|
+
data.tar.gz: 21fb09d8f4288d0d5d71883097c8c10fccf60be2c4d68471d84f15be5ea15e81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9fb466346ffba9dac52c51570f8ac943a17786f125911e7e255075deb70be7c99de2306b1cdfa6dc65b008c89f0a0a7995e9af832b2ad61bc066ed0ab3e5df3
|
7
|
+
data.tar.gz: a8e6f603dd92ebb625188ae8e72d5d92045626d981697089be13cc6f2922ca18c66047bf5b0fa403a8a1947947606222c63a426d958cfbee69b5ade7c0f89b4f
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at maintainers@infrablocks.io. All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_fly (2.
|
4
|
+
rake_fly (2.8.0.pre.2)
|
5
5
|
concourse.rb (>= 0.4)
|
6
6
|
rake_dependencies (~> 2, < 3)
|
7
7
|
rake_factory (>= 0.29, < 1)
|
8
|
-
ruby_fly (>= 0.
|
8
|
+
ruby_fly (>= 0.35)
|
9
9
|
semantic (~> 1.6.1)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (6.1.
|
14
|
+
activesupport (6.1.3.2)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
@@ -24,10 +24,10 @@ GEM
|
|
24
24
|
dry-schema (~> 0.5)
|
25
25
|
excon (~> 0.72)
|
26
26
|
semantic (~> 1.5)
|
27
|
-
concurrent-ruby (1.1.
|
27
|
+
concurrent-ruby (1.1.8)
|
28
28
|
diff-lcs (1.4.4)
|
29
|
-
docile (1.
|
30
|
-
dry-configurable (0.12.
|
29
|
+
docile (1.4.0)
|
30
|
+
dry-configurable (0.12.1)
|
31
31
|
concurrent-ruby (~> 1.0)
|
32
32
|
dry-core (~> 0.5, >= 0.5.0)
|
33
33
|
dry-container (0.7.2)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
dry-equalizer (0.3.0)
|
39
39
|
dry-inflector (0.2.0)
|
40
40
|
dry-initializer (3.0.4)
|
41
|
-
dry-logic (1.
|
41
|
+
dry-logic (1.2.0)
|
42
42
|
concurrent-ruby (~> 1.0)
|
43
43
|
dry-core (~> 0.5, >= 0.5)
|
44
44
|
dry-schema (0.6.0)
|
@@ -49,35 +49,42 @@ GEM
|
|
49
49
|
dry-initializer (~> 3.0)
|
50
50
|
dry-logic (~> 1.0)
|
51
51
|
dry-types (~> 1.0)
|
52
|
-
dry-types (1.
|
52
|
+
dry-types (1.5.1)
|
53
53
|
concurrent-ruby (~> 1.0)
|
54
54
|
dry-container (~> 0.3)
|
55
|
-
dry-core (~> 0.
|
56
|
-
dry-equalizer (~> 0.3)
|
55
|
+
dry-core (~> 0.5, >= 0.5)
|
57
56
|
dry-inflector (~> 0.1, >= 0.1.2)
|
58
57
|
dry-logic (~> 1.0, >= 1.0.2)
|
59
|
-
excon (0.
|
58
|
+
excon (0.82.0)
|
60
59
|
fakefs (0.20.1)
|
61
|
-
faker (2.
|
60
|
+
faker (2.18.0)
|
62
61
|
i18n (>= 1.6, < 2)
|
63
|
-
faraday (1.
|
62
|
+
faraday (1.4.2)
|
63
|
+
faraday-em_http (~> 1.0)
|
64
|
+
faraday-em_synchrony (~> 1.0)
|
65
|
+
faraday-excon (~> 1.1)
|
64
66
|
faraday-net_http (~> 1.0)
|
67
|
+
faraday-net_http_persistent (~> 1.1)
|
65
68
|
multipart-post (>= 1.2, < 3)
|
66
|
-
ruby2_keywords
|
67
|
-
faraday-
|
68
|
-
|
69
|
+
ruby2_keywords (>= 0.0.4)
|
70
|
+
faraday-em_http (1.0.0)
|
71
|
+
faraday-em_synchrony (1.0.0)
|
72
|
+
faraday-excon (1.1.0)
|
73
|
+
faraday-net_http (1.0.1)
|
74
|
+
faraday-net_http_persistent (1.1.0)
|
75
|
+
gem-release (2.2.1)
|
69
76
|
hamster (3.0.0)
|
70
77
|
concurrent-ruby (~> 1.0)
|
71
|
-
i18n (1.8.
|
78
|
+
i18n (1.8.10)
|
72
79
|
concurrent-ruby (~> 1.0)
|
73
|
-
jwt (2.2.
|
74
|
-
lino (
|
80
|
+
jwt (2.2.3)
|
81
|
+
lino (3.0.0)
|
75
82
|
hamster (~> 3.0)
|
76
83
|
open4 (~> 1.3)
|
77
84
|
minitar (0.9)
|
78
|
-
minitest (5.14.
|
85
|
+
minitest (5.14.4)
|
79
86
|
multipart-post (2.1.1)
|
80
|
-
octokit (4.
|
87
|
+
octokit (4.21.0)
|
81
88
|
faraday (>= 0.9)
|
82
89
|
sawyer (~> 0.8.0, >= 0.5.3)
|
83
90
|
open4 (1.3.4)
|
@@ -89,7 +96,7 @@ GEM
|
|
89
96
|
excon (~> 0.72)
|
90
97
|
rake_factory (~> 0.23)
|
91
98
|
sshkey (~> 2.0)
|
92
|
-
rake_dependencies (2.
|
99
|
+
rake_dependencies (2.11.0)
|
93
100
|
hamster (~> 3.0)
|
94
101
|
minitar (~> 0.9)
|
95
102
|
rake_factory (~> 0.23)
|
@@ -102,7 +109,7 @@ GEM
|
|
102
109
|
octokit (~> 4.16)
|
103
110
|
rake_factory (~> 0.23)
|
104
111
|
sshkey (~> 2.0)
|
105
|
-
rake_gpg (0.
|
112
|
+
rake_gpg (0.16.0)
|
106
113
|
rake_factory (>= 0.23, < 1)
|
107
114
|
ruby_gpg2 (>= 0.6, < 1)
|
108
115
|
rake_ssh (0.6.0)
|
@@ -118,12 +125,12 @@ GEM
|
|
118
125
|
rspec-expectations (3.10.1)
|
119
126
|
diff-lcs (>= 1.2.0, < 2.0)
|
120
127
|
rspec-support (~> 3.10.0)
|
121
|
-
rspec-mocks (3.10.
|
128
|
+
rspec-mocks (3.10.2)
|
122
129
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
130
|
rspec-support (~> 3.10.0)
|
124
|
-
rspec-support (3.10.
|
125
|
-
ruby2_keywords (0.0.
|
126
|
-
ruby_fly (0.
|
131
|
+
rspec-support (3.10.2)
|
132
|
+
ruby2_keywords (0.0.4)
|
133
|
+
ruby_fly (0.35.0)
|
127
134
|
lino (>= 1.5)
|
128
135
|
ruby_gpg2 (0.8.0)
|
129
136
|
lino (>= 1.5)
|
@@ -132,12 +139,12 @@ GEM
|
|
132
139
|
addressable (>= 2.3.5)
|
133
140
|
faraday (> 0.8, < 2.0)
|
134
141
|
semantic (1.6.1)
|
135
|
-
simplecov (0.21.
|
142
|
+
simplecov (0.21.2)
|
136
143
|
docile (~> 1.1)
|
137
144
|
simplecov-html (~> 0.11)
|
138
145
|
simplecov_json_formatter (~> 0.1)
|
139
146
|
simplecov-html (0.12.3)
|
140
|
-
simplecov_json_formatter (0.1.
|
147
|
+
simplecov_json_formatter (0.1.3)
|
141
148
|
sshkey (2.0.0)
|
142
149
|
tzinfo (2.0.4)
|
143
150
|
concurrent-ruby (~> 1.0)
|
@@ -165,4 +172,4 @@ DEPENDENCIES
|
|
165
172
|
simplecov (~> 0.16)
|
166
173
|
|
167
174
|
BUNDLED WITH
|
168
|
-
2.2.
|
175
|
+
2.2.26
|
@@ -13,6 +13,8 @@ module RakeFly
|
|
13
13
|
parameter :target, required: true
|
14
14
|
parameter :concourse_url, required: true
|
15
15
|
parameter :team, default: 'main'
|
16
|
+
|
17
|
+
parameter :backend, default: RakeFly::Tasks::Authentication::Login::ApiBackend
|
16
18
|
parameter :username
|
17
19
|
parameter :password
|
18
20
|
|
@@ -28,6 +28,7 @@ module RakeFly
|
|
28
28
|
parameter :set_task_name, default: :set
|
29
29
|
parameter :unpause_task_name, default: :unpause
|
30
30
|
parameter :push_task_name, default: :push
|
31
|
+
parameter :destroy_task_name, default: :destroy
|
31
32
|
|
32
33
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
33
34
|
|
@@ -47,6 +48,10 @@ module RakeFly
|
|
47
48
|
name: RakeFactory::DynamicValue.new { |ts|
|
48
49
|
ts.push_task_name
|
49
50
|
}
|
51
|
+
task Tasks::Pipeline::Destroy,
|
52
|
+
name: RakeFactory::DynamicValue.new { |ts|
|
53
|
+
ts.destroy_task_name
|
54
|
+
}
|
50
55
|
end
|
51
56
|
end
|
52
57
|
end
|
@@ -16,6 +16,8 @@ module RakeFly
|
|
16
16
|
|
17
17
|
parameter :concourse_url, required: true
|
18
18
|
parameter :team, default: 'main'
|
19
|
+
|
20
|
+
parameter :backend, default: RakeFly::Tasks::Authentication::Login::ApiBackend
|
19
21
|
parameter :username
|
20
22
|
parameter :password
|
21
23
|
|
@@ -41,6 +43,7 @@ module RakeFly
|
|
41
43
|
parameter :pipeline_set_task_name, default: :set
|
42
44
|
parameter :pipeline_unpause_task_name, default: :unpause
|
43
45
|
parameter :pipeline_push_task_name, default: :push
|
46
|
+
parameter :pipeline_destroy_task_name, default: :destroy
|
44
47
|
|
45
48
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
46
49
|
|
@@ -96,6 +99,15 @@ module RakeFly
|
|
96
99
|
unpause_task_name: RakeFactory::DynamicValue.new { |ts|
|
97
100
|
ts.pipeline_unpause_task_name
|
98
101
|
}
|
102
|
+
task Tasks::Pipeline::Destroy,
|
103
|
+
name: RakeFactory::DynamicValue.new { |ts|
|
104
|
+
ts.pipeline_destroy_task_name
|
105
|
+
},
|
106
|
+
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
107
|
+
(ts.authentication_namespace.to_s + ":" +
|
108
|
+
ts.authentication_ensure_task_name.to_s)
|
109
|
+
.to_sym
|
110
|
+
}
|
99
111
|
|
100
112
|
def define_on(application)
|
101
113
|
around_define(application) do
|
data/lib/rake_fly/tasks.rb
CHANGED
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'ruby_fly'
|
2
|
+
require 'rake_factory'
|
3
|
+
|
4
|
+
module RakeFly
|
5
|
+
module Tasks
|
6
|
+
module Pipeline
|
7
|
+
class Destroy < RakeFactory::Task
|
8
|
+
default_name :destroy
|
9
|
+
default_prerequisites RakeFactory::DynamicValue.new { |t|
|
10
|
+
[t.fly_ensure_task_name, t.authentication_ensure_task_name]
|
11
|
+
}
|
12
|
+
default_description RakeFactory::DynamicValue.new { |t|
|
13
|
+
pipeline = t.pipeline || '<derived>'
|
14
|
+
target = t.target || '<derived>'
|
15
|
+
|
16
|
+
"Destroy pipeline #{pipeline} for target #{target}"
|
17
|
+
}
|
18
|
+
|
19
|
+
parameter :target, :required => true
|
20
|
+
parameter :team
|
21
|
+
parameter :pipeline, :required => true
|
22
|
+
|
23
|
+
parameter :non_interactive
|
24
|
+
|
25
|
+
parameter :home_directory,
|
26
|
+
default: RakeFactory::DynamicValue.new { |_| ENV['HOME'] }
|
27
|
+
|
28
|
+
parameter :fly_ensure_task_name, :default => :'fly:ensure'
|
29
|
+
parameter :authentication_ensure_task_name,
|
30
|
+
:default => :'authentication:ensure'
|
31
|
+
|
32
|
+
action do |t|
|
33
|
+
puts "Destroying pipeline #{t.pipeline} for target #{t.target}..."
|
34
|
+
RubyFly.destroy_pipeline(
|
35
|
+
target: t.target,
|
36
|
+
team: t.team,
|
37
|
+
pipeline: t.pipeline,
|
38
|
+
non_interactive: t.non_interactive,
|
39
|
+
environment: {
|
40
|
+
"HOME" => t.home_directory
|
41
|
+
})
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/rake_fly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_fly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_dependencies
|
@@ -56,14 +56,14 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '0.
|
59
|
+
version: '0.35'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
66
|
+
version: '0.35'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: concourse.rb
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,7 +291,7 @@ dependencies:
|
|
291
291
|
description: Rake tasks for common fly interactions allowing Concourse pipelines to
|
292
292
|
be managed as part of a build.
|
293
293
|
email:
|
294
|
-
-
|
294
|
+
- maintainers@infrablocks.io
|
295
295
|
executables: []
|
296
296
|
extensions: []
|
297
297
|
extra_rdoc_files: []
|
@@ -313,12 +313,13 @@ files:
|
|
313
313
|
- lib/rake_fly/tasks.rb
|
314
314
|
- lib/rake_fly/tasks/authentication/ensure.rb
|
315
315
|
- lib/rake_fly/tasks/authentication/login.rb
|
316
|
+
- lib/rake_fly/tasks/pipeline/destroy.rb
|
316
317
|
- lib/rake_fly/tasks/pipeline/get.rb
|
317
318
|
- lib/rake_fly/tasks/pipeline/push.rb
|
318
319
|
- lib/rake_fly/tasks/pipeline/set.rb
|
319
320
|
- lib/rake_fly/tasks/pipeline/unpause.rb
|
320
321
|
- lib/rake_fly/version.rb
|
321
|
-
homepage: https://github.com/
|
322
|
+
homepage: https://github.com/infrablocks/rake_fly
|
322
323
|
licenses:
|
323
324
|
- MIT
|
324
325
|
metadata: {}
|
@@ -333,9 +334,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
334
|
version: '2.6'
|
334
335
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
336
|
requirements:
|
336
|
-
- - "
|
337
|
+
- - ">"
|
337
338
|
- !ruby/object:Gem::Version
|
338
|
-
version:
|
339
|
+
version: 1.3.1
|
339
340
|
requirements: []
|
340
341
|
rubygems_version: 3.0.1
|
341
342
|
signing_key:
|