ruby_fly 0.30.0.pre.1 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bca710e9c88c2053750dca94bb051410bea9babe26527dd3f7df44c82d792386
4
- data.tar.gz: cfe6338863de8e277dd352a3e11b37d2588e97a2ea80c2b1948c1d25effedebe
3
+ metadata.gz: 63c476fce2575c255e5331cd92863cbdf8ef453576462cd66294508d63b23896
4
+ data.tar.gz: cb093931c4f6200985ec29a4fe6f4cf6537f9b45afbf06d921601b9044e31fbf
5
5
  SHA512:
6
- metadata.gz: ade5f96c8f50bbbfa924305b368cec5505cef8dc17c771265ed5fa6947ac5ff93884f399bb4366961f30acae4f49b9479769b9c3eda019746b9843331fd219fe
7
- data.tar.gz: b20e59f0caeb4bc98a4430ca289349d27fa5b5a037f9c44bf796bb62ad1af16fb7d94e112d8b70c9b6bdf5b1e410e22bbf5d511a5f6abb748a9d2e357b0cf638
6
+ metadata.gz: 4103de5a2eb1c166a648bc68ca68847d4fd10eef42c259002eb8440ffc548edfa69c2bdf304fae8da2c12e03e630056b21a5fd970fdb45ee87a29b4f0b718310
7
+ data.tar.gz: cb14bc06fa25798319b4ae15bca19e14a46f0409094452186a11e79f5faf2d36af19b3d8bba958b20b3e75a0390fd319adf3540cb43381c972e7c050575af2c9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_fly (0.30.0.pre.1)
4
+ ruby_fly (0.35.0)
5
5
  lino (>= 1.5)
6
6
 
7
7
  GEM
@@ -104,4 +104,4 @@ DEPENDENCIES
104
104
  ruby_fly!
105
105
 
106
106
  BUNDLED WITH
107
- 2.2.4
107
+ 2.2.7
@@ -40,6 +40,10 @@ module RubyFly
40
40
  Commands::UnpausePipeline.new.execute(opts)
41
41
  end
42
42
 
43
+ def destroy_pipeline(opts = {})
44
+ Commands::DestroyPipeline.new.execute(opts)
45
+ end
46
+
43
47
  def version
44
48
  Commands::Version.new.execute
45
49
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RubyFly
2
- VERSION = '0.30.0.pre.1'
2
+ VERSION = '0.35.0'
3
3
  end
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.30.0.pre.1
4
+ version: 0.35.0
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-05 00:00:00.000000000 Z
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: 1.3.1
213
+ version: '0'
213
214
  requirements: []
214
215
  rubygems_version: 3.0.1
215
216
  signing_key: