Class: MDQT::CLI::Services

Inherits:
Base
  • Object
show all
Defined in:
lib/mdqt/cli/services.rb

Instance Method Summary collapse

Methods inherited from Base

#advise_on_xml_signing_support, #args, #btw, check_requirements, #colour_shell?, #explain, #extract_certificate_paths, #get_stdin, #halt!, #hey, #initialize, introduce, #options, #options=, #output, #pastel, #pipeable?, run, #say, #service_url, service_url, #yay

Constructor Details

This class inherits a constructor from MDQT::CLI::Base

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/mdqt/cli/services.rb', line 9

def run

  puts "\nKnown services:"
  puts
  MDQT::CLI::Defaults.services.each do |service|
    puts "#{service[:alias]}: #{service[:url]}"
  end
  puts
  puts "Specify these in commands using the --service option or MDQ_BASE_URL environment variable"
  puts
end