Class: EasyE::Plugin::MysqlPlugin

Inherits:
EasyE::Plugin show all
Defined in:
lib/plugins/mysql_plugin.rb

Instance Attribute Summary

Attributes inherited from EasyE::Plugin

#logger, #options

Instance Method Summary collapse

Methods inherited from EasyE::Plugin

#carefully, #collect_options, #default_options, inherited, registered_plugins

Instance Method Details

#afterObject



16
17
# File 'lib/plugins/mysql_plugin.rb', line 16

def after
end

#beforeObject



11
12
13
14
# File 'lib/plugins/mysql_plugin.rb', line 11

def before
  require 'mysql'
  Mysql.new
end

#defined_optionsObject



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

#nameObject



19
20
21
# File 'lib/plugins/mysql_plugin.rb', line 19

def name
  "Mysql"
end