class ThreeScaleToolbox::Commands::RemoteCommand::RemoteRemoveSubcommand
Public Class Methods
command()
click to toggle source
# File lib/3scale_toolbox/commands/remote_command/remote_remove.rb, line 7 def self.command Cri::Command.define do name 'remove' usage 'remove <name>' summary 'remote remove' description 'Remove remote from list' param :remote_name runner RemoteRemoveSubcommand end end
Public Instance Methods
run()
click to toggle source
# File lib/3scale_toolbox/commands/remote_command/remote_remove.rb, line 18 def run remotes.delete(arguments[:remote_name]) do |el| raise ThreeScaleToolbox::Error, "could not remove remote '#{el}'" end end