rake_fly 2.5.0 → 2.6.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -15
- data/lib/rake_fly/task_sets/pipeline.rb +5 -0
- data/lib/rake_fly/task_sets/project.rb +10 -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 +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed8cc98dcf4d5767c0b1c02812d9a3731bd6cd458e9f1c4ef5a2d72d1d3d6892
|
4
|
+
data.tar.gz: e9a3c25e1eb48e7118d2c57e533c18c2d3b881361e819e31c158773dab19dd63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6fb485ebeb5f973b9a271bcddfbb424c240d23b385cc525efe427291da303bfa0d3608466b55771917a1ecc0e756c42d9cd0e327874f9e0491a50ceeb0d71a7
|
7
|
+
data.tar.gz: 9b8ef0f149ba50e18109d8f642b1e739c976d94493e853497f4f993c073135595d314f2717d375b7d051d5eae925a701c5240f01b7dd87e677c703b72a75a1ea
|
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.6.0.pre.1)
|
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.1)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
@@ -24,9 +24,9 @@ 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.3.
|
29
|
+
docile (1.3.5)
|
30
30
|
dry-configurable (0.12.0)
|
31
31
|
concurrent-ruby (~> 1.0)
|
32
32
|
dry-core (~> 0.5, >= 0.5.0)
|
@@ -49,11 +49,10 @@ 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.0)
|
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
58
|
excon (0.78.1)
|
@@ -64,8 +63,8 @@ GEM
|
|
64
63
|
faraday-net_http (~> 1.0)
|
65
64
|
multipart-post (>= 1.2, < 3)
|
66
65
|
ruby2_keywords
|
67
|
-
faraday-net_http (1.0.
|
68
|
-
gem-release (2.2.
|
66
|
+
faraday-net_http (1.0.1)
|
67
|
+
gem-release (2.2.1)
|
69
68
|
hamster (3.0.0)
|
70
69
|
concurrent-ruby (~> 1.0)
|
71
70
|
i18n (1.8.7)
|
@@ -75,7 +74,7 @@ GEM
|
|
75
74
|
hamster (~> 3.0)
|
76
75
|
open4 (~> 1.3)
|
77
76
|
minitar (0.9)
|
78
|
-
minitest (5.14.
|
77
|
+
minitest (5.14.3)
|
79
78
|
multipart-post (2.1.1)
|
80
79
|
octokit (4.20.0)
|
81
80
|
faraday (>= 0.9)
|
@@ -122,8 +121,8 @@ GEM
|
|
122
121
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
122
|
rspec-support (~> 3.10.0)
|
124
123
|
rspec-support (3.10.1)
|
125
|
-
ruby2_keywords (0.0.
|
126
|
-
ruby_fly (0.
|
124
|
+
ruby2_keywords (0.0.4)
|
125
|
+
ruby_fly (0.35.0)
|
127
126
|
lino (>= 1.5)
|
128
127
|
ruby_gpg2 (0.8.0)
|
129
128
|
lino (>= 1.5)
|
@@ -132,7 +131,7 @@ GEM
|
|
132
131
|
addressable (>= 2.3.5)
|
133
132
|
faraday (> 0.8, < 2.0)
|
134
133
|
semantic (1.6.1)
|
135
|
-
simplecov (0.21.
|
134
|
+
simplecov (0.21.2)
|
136
135
|
docile (~> 1.1)
|
137
136
|
simplecov-html (~> 0.11)
|
138
137
|
simplecov_json_formatter (~> 0.1)
|
@@ -165,4 +164,4 @@ DEPENDENCIES
|
|
165
164
|
simplecov (~> 0.16)
|
166
165
|
|
167
166
|
BUNDLED WITH
|
168
|
-
2.2.
|
167
|
+
2.2.7
|
@@ -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
|
@@ -41,6 +41,7 @@ module RakeFly
|
|
41
41
|
parameter :pipeline_set_task_name, default: :set
|
42
42
|
parameter :pipeline_unpause_task_name, default: :unpause
|
43
43
|
parameter :pipeline_push_task_name, default: :push
|
44
|
+
parameter :pipeline_destroy_task_name, default: :destroy
|
44
45
|
|
45
46
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
46
47
|
|
@@ -96,6 +97,15 @@ module RakeFly
|
|
96
97
|
unpause_task_name: RakeFactory::DynamicValue.new { |ts|
|
97
98
|
ts.pipeline_unpause_task_name
|
98
99
|
}
|
100
|
+
task Tasks::Pipeline::Destroy,
|
101
|
+
name: RakeFactory::DynamicValue.new { |ts|
|
102
|
+
ts.pipeline_destroy_task_name
|
103
|
+
},
|
104
|
+
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
105
|
+
(ts.authentication_namespace.to_s + ":" +
|
106
|
+
ts.authentication_ensure_task_name.to_s)
|
107
|
+
.to_sym
|
108
|
+
}
|
99
109
|
|
100
110
|
def define_on(application)
|
101
111
|
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.6.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-27 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
|
@@ -313,6 +313,7 @@ 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
|
@@ -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:
|