rake_fly 2.10.0.pre.3 → 2.10.0.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +22 -20
- data/lib/rake_fly/task_sets/authentication.rb +3 -1
- data/lib/rake_fly/task_sets/pipeline.rb +3 -1
- data/lib/rake_fly/task_sets/project.rb +7 -5
- data/lib/rake_fly/tasks/authentication/ensure.rb +6 -1
- data/lib/rake_fly/tasks/authentication/login.rb +6 -1
- data/lib/rake_fly/tasks/pipeline/destroy.rb +3 -1
- data/lib/rake_fly/tasks/pipeline/get.rb +3 -1
- data/lib/rake_fly/tasks/pipeline/set.rb +3 -1
- data/lib/rake_fly/tasks/pipeline/unpause.rb +3 -1
- data/lib/rake_fly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd38dbc5a32859dbc5c79ed756d0b0d0633616b12ee671955f96c1a6a00ec86
|
4
|
+
data.tar.gz: 4ee91baf475caffce6c7f365646195a462f1573b0fa683f73def43b4215c1a7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb952f89dd0119f849ed684afb2b45a907d5d6b79fd39891a25477c925957fc78b133ff7a5e71a362fd0ac9ef17c7e683896b27c1b9e79c49f79d9402d42ffb
|
7
|
+
data.tar.gz: cc8098eb1ab1f5e132e32ea882924b1bcea34fac0e121fccba65a6f38264e1610fadfd56fc7275fe175b9310ed7564c12259fbc39f3afc4ebea59c5c96c8d0c5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_fly (2.10.0.pre.
|
4
|
+
rake_fly (2.10.0.pre.4)
|
5
5
|
concourse.rb (>= 0.4)
|
6
6
|
rake_dependencies (~> 3.1)
|
7
7
|
rake_factory (~> 0.29)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (7.0.
|
14
|
+
activesupport (7.0.3.1)
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
16
|
i18n (>= 1.6, < 2)
|
17
17
|
minitest (>= 5.1)
|
@@ -24,7 +24,7 @@ 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.10)
|
28
28
|
diff-lcs (1.5.0)
|
29
29
|
docile (1.4.0)
|
30
30
|
dry-configurable (0.14.0)
|
@@ -56,8 +56,8 @@ GEM
|
|
56
56
|
dry-inflector (~> 0.1, >= 0.1.2)
|
57
57
|
dry-logic (~> 1.0, >= 1.0.2)
|
58
58
|
excon (0.92.0)
|
59
|
-
fakefs (1.
|
60
|
-
faker (2.
|
59
|
+
fakefs (1.8.0)
|
60
|
+
faker (2.23.0)
|
61
61
|
i18n (>= 1.8.11, < 2)
|
62
62
|
faraday (1.10.0)
|
63
63
|
faraday-em_http (~> 1.0)
|
@@ -85,22 +85,23 @@ GEM
|
|
85
85
|
gem-release (2.2.2)
|
86
86
|
hamster (3.0.0)
|
87
87
|
concurrent-ruby (~> 1.0)
|
88
|
-
i18n (1.
|
88
|
+
i18n (1.12.0)
|
89
89
|
concurrent-ruby (~> 1.0)
|
90
|
-
|
90
|
+
json (2.6.2)
|
91
|
+
jwt (2.5.0)
|
91
92
|
lino (3.0.0)
|
92
93
|
hamster (~> 3.0)
|
93
94
|
open4 (~> 1.3)
|
94
95
|
minitar (0.9)
|
95
|
-
minitest (5.
|
96
|
+
minitest (5.16.2)
|
96
97
|
multipart-post (2.1.1)
|
97
98
|
octokit (4.22.0)
|
98
99
|
faraday (>= 0.9)
|
99
100
|
sawyer (~> 0.8.0, >= 0.5.3)
|
100
101
|
open4 (1.3.4)
|
101
|
-
openssl (3.0.
|
102
|
+
openssl (3.0.1)
|
102
103
|
parallel (1.22.1)
|
103
|
-
parser (3.1.1
|
104
|
+
parser (3.1.2.1)
|
104
105
|
ast (~> 2.4.1)
|
105
106
|
public_suffix (4.0.6)
|
106
107
|
rainbow (3.1.1)
|
@@ -130,7 +131,7 @@ GEM
|
|
130
131
|
colored2 (~> 3.1)
|
131
132
|
rake_factory (~> 0.23)
|
132
133
|
sshkey (~> 2.0)
|
133
|
-
regexp_parser (2.
|
134
|
+
regexp_parser (2.5.0)
|
134
135
|
rexml (3.2.5)
|
135
136
|
rspec (3.11.0)
|
136
137
|
rspec-core (~> 3.11.0)
|
@@ -145,21 +146,22 @@ GEM
|
|
145
146
|
diff-lcs (>= 1.2.0, < 2.0)
|
146
147
|
rspec-support (~> 3.11.0)
|
147
148
|
rspec-support (3.11.0)
|
148
|
-
rubocop (1.
|
149
|
+
rubocop (1.36.0)
|
150
|
+
json (~> 2.3)
|
149
151
|
parallel (~> 1.10)
|
150
|
-
parser (>= 3.1.
|
152
|
+
parser (>= 3.1.2.1)
|
151
153
|
rainbow (>= 2.2.2, < 4.0)
|
152
154
|
regexp_parser (>= 1.8, < 3.0)
|
153
|
-
rexml
|
154
|
-
rubocop-ast (>= 1.
|
155
|
+
rexml (>= 3.2.5, < 4.0)
|
156
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
155
157
|
ruby-progressbar (~> 1.7)
|
156
158
|
unicode-display_width (>= 1.4.0, < 3.0)
|
157
|
-
rubocop-ast (1.
|
159
|
+
rubocop-ast (1.21.0)
|
158
160
|
parser (>= 3.1.1.0)
|
159
161
|
rubocop-rake (0.6.0)
|
160
162
|
rubocop (~> 1.0)
|
161
|
-
rubocop-rspec (2.
|
162
|
-
rubocop (~> 1.
|
163
|
+
rubocop-rspec (2.12.1)
|
164
|
+
rubocop (~> 1.31)
|
163
165
|
ruby-progressbar (1.11.0)
|
164
166
|
ruby2_keywords (0.0.5)
|
165
167
|
ruby_fly (0.37.0)
|
@@ -180,7 +182,7 @@ GEM
|
|
180
182
|
sshkey (2.0.0)
|
181
183
|
tzinfo (2.0.4)
|
182
184
|
concurrent-ruby (~> 1.0)
|
183
|
-
unicode-display_width (2.
|
185
|
+
unicode-display_width (2.2.0)
|
184
186
|
|
185
187
|
PLATFORMS
|
186
188
|
ruby
|
@@ -207,4 +209,4 @@ DEPENDENCIES
|
|
207
209
|
simplecov
|
208
210
|
|
209
211
|
BUNDLED WITH
|
210
|
-
2.3.
|
212
|
+
2.3.22
|
@@ -22,7 +22,9 @@ module RakeFly
|
|
22
22
|
parameter :password
|
23
23
|
|
24
24
|
parameter :home_directory,
|
25
|
-
default: RakeFactory::DynamicValue.new { |_|
|
25
|
+
default: RakeFactory::DynamicValue.new { |_|
|
26
|
+
Dir.home
|
27
|
+
}
|
26
28
|
|
27
29
|
parameter :login_task_name, default: :login
|
28
30
|
parameter :ensure_task_name, default: :ensure
|
@@ -24,7 +24,9 @@ module RakeFly
|
|
24
24
|
parameter :non_interactive
|
25
25
|
|
26
26
|
parameter :home_directory,
|
27
|
-
default: RakeFactory::DynamicValue.new { |_|
|
27
|
+
default: RakeFactory::DynamicValue.new { |_|
|
28
|
+
Dir.home
|
29
|
+
}
|
28
30
|
|
29
31
|
parameter :get_task_name, default: :get
|
30
32
|
parameter :set_task_name, default: :set
|
@@ -36,7 +36,9 @@ module RakeFly
|
|
36
36
|
default: RakeFactory::DynamicValue.new { |t| t.team }
|
37
37
|
|
38
38
|
parameter :home_directory,
|
39
|
-
default: RakeFactory::DynamicValue.new { |_|
|
39
|
+
default: RakeFactory::DynamicValue.new { |_|
|
40
|
+
Dir.home
|
41
|
+
}
|
40
42
|
|
41
43
|
parameter :authentication_namespace, default: :authentication
|
42
44
|
parameter :authentication_login_task_name, default: :login
|
@@ -68,7 +70,7 @@ module RakeFly
|
|
68
70
|
ts.pipeline_get_task_name
|
69
71
|
},
|
70
72
|
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
71
|
-
"#{ts.authentication_namespace}:"\
|
73
|
+
"#{ts.authentication_namespace}:" \
|
72
74
|
"#{ts.authentication_ensure_task_name}"
|
73
75
|
.to_sym
|
74
76
|
}
|
@@ -77,7 +79,7 @@ module RakeFly
|
|
77
79
|
ts.pipeline_set_task_name
|
78
80
|
},
|
79
81
|
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
80
|
-
"#{ts.authentication_namespace}:"\
|
82
|
+
"#{ts.authentication_namespace}:" \
|
81
83
|
"#{ts.authentication_ensure_task_name}"
|
82
84
|
.to_sym
|
83
85
|
}
|
@@ -86,7 +88,7 @@ module RakeFly
|
|
86
88
|
ts.pipeline_unpause_task_name
|
87
89
|
},
|
88
90
|
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
89
|
-
"#{ts.authentication_namespace}:"\
|
91
|
+
"#{ts.authentication_namespace}:" \
|
90
92
|
"#{ts.authentication_ensure_task_name}"
|
91
93
|
.to_sym
|
92
94
|
}
|
@@ -108,7 +110,7 @@ module RakeFly
|
|
108
110
|
ts.pipeline_destroy_task_name
|
109
111
|
},
|
110
112
|
authentication_ensure_task_name: RakeFactory::DynamicValue.new { |ts|
|
111
|
-
"#{ts.authentication_namespace}:"\
|
113
|
+
"#{ts.authentication_namespace}:" \
|
112
114
|
"#{ts.authentication_ensure_task_name}"
|
113
115
|
.to_sym
|
114
116
|
}
|
@@ -21,7 +21,9 @@ module RakeFly
|
|
21
21
|
parameter :target, required: true
|
22
22
|
|
23
23
|
parameter :home_directory,
|
24
|
-
default: RakeFactory::DynamicValue.new { |_|
|
24
|
+
default: RakeFactory::DynamicValue.new { |_|
|
25
|
+
Dir.home
|
26
|
+
}
|
25
27
|
|
26
28
|
parameter :login_task_name, default: :login
|
27
29
|
|
@@ -29,6 +31,9 @@ module RakeFly
|
|
29
31
|
|
30
32
|
action do |t, args|
|
31
33
|
$stdout.puts("Ensuring target #{t.target} is logged in...")
|
34
|
+
|
35
|
+
FileUtils.mkdir_p(t.home_directory)
|
36
|
+
|
32
37
|
status = RubyFly.status(
|
33
38
|
target: t.target,
|
34
39
|
environment: {
|
@@ -79,7 +79,9 @@ module RakeFly
|
|
79
79
|
parameter :backend, default: ApiBackend
|
80
80
|
|
81
81
|
parameter :home_directory,
|
82
|
-
default: RakeFactory::DynamicValue.new { |_|
|
82
|
+
default: RakeFactory::DynamicValue.new { |_|
|
83
|
+
Dir.home
|
84
|
+
}
|
83
85
|
|
84
86
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
85
87
|
|
@@ -87,6 +89,9 @@ module RakeFly
|
|
87
89
|
$stdout.puts(
|
88
90
|
"Logging in to #{t.concourse_url} as target #{t.target}..."
|
89
91
|
)
|
92
|
+
|
93
|
+
FileUtils.mkdir_p(t.home_directory)
|
94
|
+
|
90
95
|
t.backend.new.execute(t)
|
91
96
|
end
|
92
97
|
end
|
@@ -25,7 +25,9 @@ module RakeFly
|
|
25
25
|
parameter :non_interactive
|
26
26
|
|
27
27
|
parameter :home_directory,
|
28
|
-
default: RakeFactory::DynamicValue.new { |_|
|
28
|
+
default: RakeFactory::DynamicValue.new { |_|
|
29
|
+
Dir.home
|
30
|
+
}
|
29
31
|
|
30
32
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
31
33
|
parameter :authentication_ensure_task_name,
|
@@ -22,7 +22,9 @@ module RakeFly
|
|
22
22
|
parameter :pipeline, required: true
|
23
23
|
|
24
24
|
parameter :home_directory,
|
25
|
-
default: RakeFactory::DynamicValue.new { |_|
|
25
|
+
default: RakeFactory::DynamicValue.new { |_|
|
26
|
+
Dir.home
|
27
|
+
}
|
26
28
|
|
27
29
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
28
30
|
parameter :authentication_ensure_task_name,
|
@@ -28,7 +28,9 @@ module RakeFly
|
|
28
28
|
parameter :non_interactive
|
29
29
|
|
30
30
|
parameter :home_directory,
|
31
|
-
default: RakeFactory::DynamicValue.new { |_|
|
31
|
+
default: RakeFactory::DynamicValue.new { |_|
|
32
|
+
Dir.home
|
33
|
+
}
|
32
34
|
|
33
35
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
34
36
|
parameter :authentication_ensure_task_name,
|
@@ -23,7 +23,9 @@ module RakeFly
|
|
23
23
|
parameter :pipeline, required: true
|
24
24
|
|
25
25
|
parameter :home_directory,
|
26
|
-
default: RakeFactory::DynamicValue.new { |_|
|
26
|
+
default: RakeFactory::DynamicValue.new { |_|
|
27
|
+
Dir.home
|
28
|
+
}
|
27
29
|
|
28
30
|
parameter :fly_ensure_task_name, default: :'fly:ensure'
|
29
31
|
parameter :authentication_ensure_task_name,
|
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.10.0.pre.
|
4
|
+
version: 2.10.0.pre.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concourse.rb
|