Sha256: 1093003680773853af28d9b44feb61a6244b98b31f8e27917490a4656b7f2b81
Contents?: true
Size: 854 Bytes
Versions: 5
Compression:
Stored size: 854 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(initial_builder, parameters) builder = super builder .with_subcommand('get-pipeline') do |sub| sub = with_target(sub, parameters[:target]) sub = with_pipeline(sub, parameters[: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
5 entries across 5 versions & 1 rubygems