Sha256: 46ff041dbc426bdbd618705e100c44ee9c0f207da058cddaf66865e65479a6ad
Contents?: true
Size: 803 Bytes
Versions: 19
Compression:
Stored size: 803 Bytes
Contents
require 'lino' require_relative 'base' module RubyFly module Commands class UnpausePipeline < Base def configure_command(builder, opts) missing_params = [ :target, :pipeline ].select { |param| opts[param].nil? } unless missing_params.empty? description = missing_params.map { |p| "'#{p}'" }.join(', ') raise( ArgumentError, "Error: #{description} required but not provided.") end target = opts[:target] pipeline = opts[:pipeline] builder .with_subcommand('unpause-pipeline') do |sub| sub = sub.with_option('-t', target) sub = sub.with_option('-p', pipeline) sub end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems