Sha256: 38e1a8e22a0af1e8eb9fbf39c26793611f1cad96855ee7f2330cdb4b6ae7915c
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
#!/usr/bin/ruby require 'rubygems' $LOAD_PATH << File.dirname(__FILE__) + "/../lib" require 'mysql_isolated_server' require 'getoptlong' opts = GetoptLong.new( [ '--log-bin', GetoptLong::REQUIRED_ARGUMENT ], [ '--pid', GetoptLong::REQUIRED_ARGUMENT ] ) options = {} opts.each do |opt, arg| case opt when '--log-bin' options[:log_bin] = arg when '--pid' options[:pid] = arg.to_i end end options[:params] = ARGV.join(' ') mysql_isolated_server = MysqlIsolatedServer.new(options) mysql_isolated_server.boot! puts "dir: " + mysql_isolated_server.base puts "port: " + mysql_isolated_server.port.to_s STDOUT.flush
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mysql_isolated_server-0.3.2 | bin/boot_isolated_server |