Class: RubyFly::Commands::SetPipeline

Inherits:
Base
  • Object
show all
Includes:
Mixins::Environment, Mixins::RequiredParams
Defined in:
lib/ruby_fly/commands/set_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

rubocop:disable Metrics/AbcSize rubocop:disable Metrics/MethodLength



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ruby_fly/commands/set_pipeline.rb', line 16

def configure_command(builder, opts)
  builder = super(builder, opts)
  builder
    .with_subcommand('set-pipeline') do |sub|
      sub = with_target(sub, opts[:target])
      sub = with_pipeline(sub, opts[:pipeline])
      sub = with_config(sub, opts[:config])
      sub = with_team(sub, opts[:team])
      sub = with_vars(sub, opts[:vars])
      sub = with_var_files(sub, opts[:var_files])
      sub = with_non_interactive(sub, opts[:non_interactive])
      sub
    end
end