Class: Mysqlknife::Parameter::Console
- Defined in:
- lib/mysqlknife/parameter/console.rb
Instance Attribute Summary collapse
-
#execute ⇒ Object
writeonly
Sets the attribute execute.
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 Attribute Details
#execute=(value) ⇒ Object (writeonly)
Sets the attribute execute
6 7 8 |
# File 'lib/mysqlknife/parameter/console.rb', line 6 def execute=(value) @execute = value end |
Instance Method Details
#connect ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/mysqlknife/parameter/console.rb', line 8 def connect @config.connection(@connection) if @connection.nil? == false && @host.nil? == false puts "Connecting to: #{@config.select(@host)}" @command.execute(@mysql.console(@execute)) end end |