class ThreeScaleToolbox::Commands::RemoteCommand::RemoteListSubcommand
Public Class Methods
command()
click to toggle source
# File lib/3scale_toolbox/commands/remote_command/remote_list.rb, line 7 def self.command Cri::Command.define do name 'list' usage 'list' summary 'remote list' description 'List all defined remotes' runner RemoteListSubcommand end end
Public Instance Methods
run()
click to toggle source
# File lib/3scale_toolbox/commands/remote_command/remote_list.rb, line 17 def run if remotes.all.empty? puts 'Empty remote list.' else remotes.all.each do |name, remote| puts "#{name} #{remote[:endpoint]} #{remote[:authentication]}" end end end