Module: Proxysqlweightlifter
- Defined in:
- lib/proxysqlweightlifter.rb,
lib/proxysqlweightlifter/lift.rb,
lib/proxysqlweightlifter/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.3.0'
Class Method Summary collapse
Class Method Details
.run(argv) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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 |