Sha256: 58b17b0336543e9be630fb99efb4b0c913cf3c6bd0fe913cbd7ebc2976853863

Contents?: true

Size: 1.38 KB

Versions: 48

Compression:

Stored size: 1.38 KB

Contents

class Mysql < Spider::Master::DbResource
    PROVIDES = [:db, :mysql]
    
    OPTIONS = {
        :user => {
            :name       => _('MySQL username'),
            :notes      => _('Specify the username to connect with'),
            :default    => 'root'
        },
        :password => {
            :name       => _('MySQL password'),
            :notes      => _('Specify the password to connect with'),
            :attributes => ['password']
        },
        :host => {
            :name       => _('MySQL host'),
            :notes      => _("Specify something other than 'localhost' to connect via TCP")
        },
        :port => {
            :name       => _('MySQL port'),
            :notes      => _('Specify the port to connect to MySQL with (if nonstandard)')
        },
        :socket => {
            :name       => _('MySQL socket'),
            :notes      => _('Specify the location of the MySQL socket')
        }
    }
    
    def plugins
        {
            :mysql_query_statistics => {
                :options => {
                    :user => options[:user],
                    :password => options[:password],
                    :host => options[:host],
                    :port => options[:port],
                    :socket => options[:socket]                    
                }
                :override => true
            }
        }
    end
       
    
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-1.0.0 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.39 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.38 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.37 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.35 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.34 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.33 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.32 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.31 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.30 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.29 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.28 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.27 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.26 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.26.pre1 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.25 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.24 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.23 apps/master/plugins/resources/mysql/mysql.rb
spiderfw-0.6.22 apps/master/plugins/resources/mysql/mysql.rb