class Mysqlknife::Parameter::Config

Public Instance Methods

show() click to toggle source
# File lib/mysqlknife/parameter/config.rb, line 6
def show
  unless @connection.nil?
    @config.connection(@connection)
    puts "Connection: #{@connection}"
    puts "  Hosts: #{@config.hosts.join(', ')}"
    puts "  Port: #{@config.mysql[:port]}"
    puts "  Username: #{@config.mysql[:username]}"
    puts "  Password: #{@config.mysql[:password]}"
  end
end