module Proxysqlweightlifter

Constants

VERSION

Public Class Methods

run(argv) click to toggle source
# File lib/proxysqlweightlifter.rb, line 8
def self.run(argv)
  host, port, user, pass, weight, custom_weight = argv
  Lift.new(
    Mysql2::Client.new(
      host: host,
      port: port,
      username: user,
      password: pass,
      database: 'main'
    ),
    weight || 9,
    custom_weight
  ).run
end