ruby_fly 0.31.0 → 0.36.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/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +27 -19
- data/README.md +1 -1
- data/lib/ruby_fly.rb +4 -0
- data/lib/ruby_fly/commands.rb +1 -0
- data/lib/ruby_fly/commands/destroy_pipeline.rb +41 -0
- data/lib/ruby_fly/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f492d08d63ec84fa9dd94cae26a1e546cc104dfd3715729058dd794ea76351
|
4
|
+
data.tar.gz: b3a2d25dfc8738c0a680aff6e1af324478e416472623f6766077157f53576de1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beeef706ef8fa319ef155f83c9e8cc5734243eeac404914059ecd93afeea4aa16e53df55c4f1904c4fb3819ee04e96f1d965d9f0e7c3d15c965a53f160239e6f
|
7
|
+
data.tar.gz: 1477ee9cb763e88e4dc567dffc2a795e63602a467823a6fbcff82a4ce179740ed0693fde4757d81326ddd21ad1dbcf19b6d48bd121e7aaa5fdf04844ea560090
|
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,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_fly (0.
|
4
|
+
ruby_fly (0.36.0.pre.1)
|
5
5
|
lino (>= 1.5)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.
|
10
|
+
activesupport (6.1.3.2)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
@@ -16,28 +16,36 @@ GEM
|
|
16
16
|
addressable (2.7.0)
|
17
17
|
public_suffix (>= 2.0.2, < 5.0)
|
18
18
|
colored2 (3.1.2)
|
19
|
-
concurrent-ruby (1.1.
|
19
|
+
concurrent-ruby (1.1.8)
|
20
20
|
diff-lcs (1.4.4)
|
21
|
-
excon (0.
|
22
|
-
fakefs (1.3.
|
23
|
-
faker (2.
|
21
|
+
excon (0.82.0)
|
22
|
+
fakefs (1.3.2)
|
23
|
+
faker (2.18.0)
|
24
24
|
i18n (>= 1.6, < 2)
|
25
|
-
faraday (1.
|
25
|
+
faraday (1.4.2)
|
26
|
+
faraday-em_http (~> 1.0)
|
27
|
+
faraday-em_synchrony (~> 1.0)
|
28
|
+
faraday-excon (~> 1.1)
|
26
29
|
faraday-net_http (~> 1.0)
|
30
|
+
faraday-net_http_persistent (~> 1.1)
|
27
31
|
multipart-post (>= 1.2, < 3)
|
28
|
-
ruby2_keywords
|
29
|
-
faraday-
|
30
|
-
|
32
|
+
ruby2_keywords (>= 0.0.4)
|
33
|
+
faraday-em_http (1.0.0)
|
34
|
+
faraday-em_synchrony (1.0.0)
|
35
|
+
faraday-excon (1.1.0)
|
36
|
+
faraday-net_http (1.0.1)
|
37
|
+
faraday-net_http_persistent (1.1.0)
|
38
|
+
gem-release (2.2.1)
|
31
39
|
hamster (3.0.0)
|
32
40
|
concurrent-ruby (~> 1.0)
|
33
|
-
i18n (1.8.
|
41
|
+
i18n (1.8.10)
|
34
42
|
concurrent-ruby (~> 1.0)
|
35
|
-
lino (
|
43
|
+
lino (3.0.0)
|
36
44
|
hamster (~> 3.0)
|
37
45
|
open4 (~> 1.3)
|
38
|
-
minitest (5.14.
|
46
|
+
minitest (5.14.4)
|
39
47
|
multipart-post (2.1.1)
|
40
|
-
octokit (4.
|
48
|
+
octokit (4.21.0)
|
41
49
|
faraday (>= 0.9)
|
42
50
|
sawyer (~> 0.8.0, >= 0.5.3)
|
43
51
|
open4 (1.3.4)
|
@@ -56,7 +64,7 @@ GEM
|
|
56
64
|
octokit (~> 4.16)
|
57
65
|
rake_factory (~> 0.23)
|
58
66
|
sshkey (~> 2.0)
|
59
|
-
rake_gpg (0.
|
67
|
+
rake_gpg (0.16.0)
|
60
68
|
rake_factory (>= 0.23, < 1)
|
61
69
|
ruby_gpg2 (>= 0.6, < 1)
|
62
70
|
rake_ssh (0.6.0)
|
@@ -72,11 +80,11 @@ GEM
|
|
72
80
|
rspec-expectations (3.10.1)
|
73
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
74
82
|
rspec-support (~> 3.10.0)
|
75
|
-
rspec-mocks (3.10.
|
83
|
+
rspec-mocks (3.10.2)
|
76
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
77
85
|
rspec-support (~> 3.10.0)
|
78
|
-
rspec-support (3.10.
|
79
|
-
ruby2_keywords (0.0.
|
86
|
+
rspec-support (3.10.2)
|
87
|
+
ruby2_keywords (0.0.4)
|
80
88
|
ruby_gpg2 (0.8.0)
|
81
89
|
lino (>= 1.5)
|
82
90
|
sawyer (0.8.2)
|
@@ -104,4 +112,4 @@ DEPENDENCIES
|
|
104
112
|
ruby_fly!
|
105
113
|
|
106
114
|
BUNDLED WITH
|
107
|
-
2.2.
|
115
|
+
2.2.18
|
data/README.md
CHANGED
@@ -162,7 +162,7 @@ openssl aes-256-cbc \
|
|
162
162
|
## Contributing
|
163
163
|
|
164
164
|
Bug reports and pull requests are welcome on GitHub at
|
165
|
-
https://github.com/
|
165
|
+
https://github.com/infrablocks/ruby_fly. This project is intended to be a safe,
|
166
166
|
welcoming space for collaboration, and contributors are expected to adhere to
|
167
167
|
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
168
168
|
|
data/lib/ruby_fly.rb
CHANGED
data/lib/ruby_fly/commands.rb
CHANGED
@@ -3,6 +3,7 @@ require_relative 'commands/status'
|
|
3
3
|
require_relative 'commands/get_pipeline'
|
4
4
|
require_relative 'commands/set_pipeline'
|
5
5
|
require_relative 'commands/unpause_pipeline'
|
6
|
+
require_relative 'commands/destroy_pipeline'
|
6
7
|
require_relative 'commands/version'
|
7
8
|
|
8
9
|
module RubyFly
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'lino'
|
2
|
+
require_relative 'base'
|
3
|
+
require_relative 'mixins/environment'
|
4
|
+
|
5
|
+
module RubyFly
|
6
|
+
module Commands
|
7
|
+
class DestroyPipeline < Base
|
8
|
+
include Mixins::Environment
|
9
|
+
|
10
|
+
def configure_command(builder, opts)
|
11
|
+
builder = super(builder, opts)
|
12
|
+
|
13
|
+
missing_params = [
|
14
|
+
:target,
|
15
|
+
:pipeline
|
16
|
+
].select { |param| opts[param].nil? }
|
17
|
+
|
18
|
+
unless missing_params.empty?
|
19
|
+
description = missing_params.map { |p| "'#{p}'" }.join(', ')
|
20
|
+
raise(
|
21
|
+
ArgumentError,
|
22
|
+
"Error: #{description} required but not provided.")
|
23
|
+
end
|
24
|
+
|
25
|
+
target = opts[:target]
|
26
|
+
pipeline = opts[:pipeline]
|
27
|
+
non_interactive = opts[:non_interactive]
|
28
|
+
team = opts[:team]
|
29
|
+
|
30
|
+
builder
|
31
|
+
.with_subcommand('destroy-pipeline') do |sub|
|
32
|
+
sub = sub.with_option('-t', target)
|
33
|
+
sub = sub.with_option('-p', pipeline)
|
34
|
+
sub = sub.with_option('--team', team) if team
|
35
|
+
sub = sub.with_flag('-n') if non_interactive
|
36
|
+
sub
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/lib/ruby_fly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_fly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.36.0.pre.1
|
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-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lino
|
@@ -167,7 +167,7 @@ dependencies:
|
|
167
167
|
description: Wraps the concourse fly CLI so that fly can be invoked from a Ruby script
|
168
168
|
or Rakefile.
|
169
169
|
email:
|
170
|
-
-
|
170
|
+
- maintainers@infrablocks.io
|
171
171
|
executables: []
|
172
172
|
extensions: []
|
173
173
|
extra_rdoc_files: []
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/ruby_fly.rb
|
184
184
|
- lib/ruby_fly/commands.rb
|
185
185
|
- lib/ruby_fly/commands/base.rb
|
186
|
+
- lib/ruby_fly/commands/destroy_pipeline.rb
|
186
187
|
- lib/ruby_fly/commands/get_pipeline.rb
|
187
188
|
- lib/ruby_fly/commands/login.rb
|
188
189
|
- lib/ruby_fly/commands/mixins/environment.rb
|
@@ -192,7 +193,7 @@ files:
|
|
192
193
|
- lib/ruby_fly/commands/version.rb
|
193
194
|
- lib/ruby_fly/rc.rb
|
194
195
|
- lib/ruby_fly/version.rb
|
195
|
-
homepage: https://github.com/
|
196
|
+
homepage: https://github.com/infrablocks/ruby_fly
|
196
197
|
licenses:
|
197
198
|
- MIT
|
198
199
|
metadata: {}
|
@@ -207,9 +208,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
208
|
version: '2.6'
|
208
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
210
|
requirements:
|
210
|
-
- - "
|
211
|
+
- - ">"
|
211
212
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
213
|
+
version: 1.3.1
|
213
214
|
requirements: []
|
214
215
|
rubygems_version: 3.0.1
|
215
216
|
signing_key:
|