Class: RubyFly::Commands::DestroyPipeline

Inherits:
Base
  • Object
show all
Includes:
Mixins::Environment, Mixins::RequiredParams
Defined in:
lib/ruby_fly/commands/destroy_pipeline.rb

Instance Attribute Summary

Attributes inherited from Base

#binary, #stderr, #stdin, #stdout

Instance Method Summary collapse

Methods included from Mixins::Environment

#for_environment, #initialize

Methods inherited from Base

#do_after, #do_around, #do_before, #execute, #initialize, #instantiate_builder

Instance Method Details

#configure_command(builder, opts) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ruby_fly/commands/destroy_pipeline.rb', line 14

def configure_command(builder, opts)
  builder = super(builder, opts)
  builder
    .with_subcommand('destroy-pipeline') do |sub|
    sub = with_target(sub, opts[:target])
    sub = with_pipeline(sub, opts[:pipeline])
    sub = with_team(sub, opts[:team])
    sub = with_non_interactive(sub, opts[:non_interactive])
    sub
  end
end