Module: Arql::Commands::Info
- Defined in:
- lib/arql/commands/info.rb
Class Method Summary collapse
Class Method Details
.db_info ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/arql/commands/info.rb', line 6 def db_info "\n Database Connection Information:\n\n Active: \#{color_boolean(ActiveRecord::Base.connection.active?)}\n Host: \#{Arql::App.config[:host]}\n Port: \#{Arql::App.config[:port]}\n Username: \#{Arql::App.config[:username]}\n Password: \#{(Arql::App.config[:password] || '').gsub(/./, '*')}\n Database: \#{Arql::App.config[:database]}\n Adapter: \#{Arql::App.config[:adapter]}\n Encoding: \#{Arql::App.config[:encoding]}\n Pool Size: \#{Arql::App.config[:pool]}\n EOF\nend\n" |
.ssh_info ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/arql/commands/info.rb', line 23 def ssh_info "\n SSH Connection Information:\n\n Active: \#{color_boolean(Arql::SSHProxy.active?)}\n Host: \#{Arql::App.config[:ssh][:host]}\n Port: \#{Arql::App.config[:ssh][:port]}\n Username: \#{Arql::App.config[:ssh][:user]}\n Password: \#{(Arql::App.config[:ssh][:password] || '').gsub(/./, '*')}\n Local Port: \#{Arql::SSHProxy.local_ssh_proxy_port}\n EOF\nend\n" |