Sha256: 8c614b1a942f6cb048bc7d458dfd049ac128b4a8ca9ed776e7d1e82d205e72bb

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 Bytes

Contents

#!/usr/bin/ruby
$LOAD_PATH << File.dirname(__FILE__) + "/../lib"
require 'rubygems'
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

8 entries across 8 versions & 1 rubygems

Version Path
mysql_isolated_server-0.5.4 bin/boot_isolated_server
mysql_isolated_server-0.5.3 bin/boot_isolated_server
mysql_isolated_server-0.5.2 bin/boot_isolated_server
mysql_isolated_server-0.5.1 bin/boot_isolated_server
mysql_isolated_server-0.5.0 bin/boot_isolated_server
mysql_isolated_server-0.4.1 bin/boot_isolated_server
mysql_isolated_server-0.4.0 bin/boot_isolated_server
mysql_isolated_server-0.3.3 bin/boot_isolated_server