Sha256: a34e6abd8d5d1c1cfa75d4df935a00e2c07f8e507fda739f939824aad2f0a8ab
Contents?: true
Size: 843 Bytes
Versions: 8
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true require 'lino' require_relative 'base' require_relative 'mixins/environment' require_relative 'mixins/required_params' module RubyFly module Commands class GetPipeline < Base include Mixins::Environment include Mixins::RequiredParams def configure_command(builder, opts) builder = super(builder, opts) builder .with_subcommand('get-pipeline') do |sub| sub = with_target(sub, opts[:target]) sub = with_pipeline(sub, opts[:pipeline]) sub end end private def required_params %i[target pipeline] end def with_target(sub, target) sub.with_option('-t', target) end def with_pipeline(sub, pipeline) sub.with_option('-p', pipeline) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems