Class: Themigrator::Runner::Script

Inherits:
Object
  • Object
show all
Defined in:
lib/themigrator/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(script, log_file) ⇒ Script

Returns a new instance of Script.



12
13
14
15
# File 'lib/themigrator/runner.rb', line 12

def initialize(script, log_file)
  @script = script
  @log_file = File.open(log_file, "w", 0600)
end

Instance Method Details

#closeObject



17
18
19
# File 'lib/themigrator/runner.rb', line 17

def close
  @log_file.close
end