Method: Wordmove::Doctor::Mysql#initialize
- Defined in:
- lib/wordmove/doctor/mysql.rb
#initialize(movefile_name = nil, movefile_dir = '.') ⇒ Mysql
Returns a new instance of Mysql.
6 7 8 9 10 11 12 13 |
# File 'lib/wordmove/doctor/mysql.rb', line 6 def initialize(movefile_name = nil, movefile_dir = '.') @logger = Logger.new(STDOUT).tap { |l| l.level = Logger::INFO } begin @config = Wordmove::Movefile.new(movefile_name, movefile_dir).fetch[:local][:database] rescue Psych::SyntaxError return end end |