Class: EasyE::Plugin::MysqlPlugin
Instance Attribute Summary
#logger, #options
Instance Method Summary
collapse
#carefully, #collect_options, #default_options, inherited, registered_plugins
Instance Method Details
#after ⇒ Object
16
17
|
# File 'lib/plugins/mysql_plugin.rb', line 16
def after
end
|
#before ⇒ Object
11
12
13
14
|
# File 'lib/plugins/mysql_plugin.rb', line 11
def before
require 'mysql'
Mysql.new
end
|
#defined_options ⇒ Object
2
3
4
5
6
7
8
9
|
# File 'lib/plugins/mysql_plugin.rb', line 2
def defined_options
{
user: 'MySql Username',
pass: 'MySql Password',
port: 'MySql port',
host: 'MySql host'
}
end
|
#name ⇒ Object
19
20
21
|
# File 'lib/plugins/mysql_plugin.rb', line 19
def name
"Mysql"
end
|