ruby_fly 0.31.0 → 0.32.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 +2 -2
- data/lib/ruby_fly.rb +4 -0
- data/lib/ruby_fly/commands.rb +1 -0
- data/lib/ruby_fly/commands/destroy_pipeline.rb +37 -0
- data/lib/ruby_fly/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abcd3cc91c09e86f00c971d1473d3503021ec51ca355cecace76e433f50c2541
|
4
|
+
data.tar.gz: 2e50a3435fd3695b9876f0a3b91654c9a8d20c92975ba5d213c98aaef9108925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f7c37edaa05cf66d1563624d6a7ab83e91aa9eb04c9d01a8cdad7fd9f6352fe225e55edfa0ad6d8aa1efd67943f48455208c288899a598fc9ecd6abc9936182
|
7
|
+
data.tar.gz: 5eb7edb2b646994c056601edac7540f2dab962428243dd1b862a4917f1b2b4b0c7df18e560015b68a1fb4f7cc38d509682826efe0f64e4325738930ab3ba86ee
|
data/Gemfile.lock
CHANGED
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,37 @@
|
|
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
|
+
|
28
|
+
builder
|
29
|
+
.with_subcommand('destroy-pipeline') do |sub|
|
30
|
+
sub = sub.with_option('-t', target)
|
31
|
+
sub = sub.with_option('-p', pipeline)
|
32
|
+
sub
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
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.32.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: lino
|
@@ -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
|
@@ -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:
|