Class: Mysqlknife::Parameter::Config
- Defined in:
- lib/mysqlknife/parameter/config.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#connections, #hosts, #initialize
Constructor Details
This class inherits a constructor from Mysqlknife::Parameter::Base
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# 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 |