Class: Themigrator::Runner::Script
- Inherits:
-
Object
- Object
- Themigrator::Runner::Script
- Defined in:
- lib/themigrator/runner.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(script, log_file) ⇒ Script
constructor
A new instance of Script.
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
#close ⇒ Object
17 18 19 |
# File 'lib/themigrator/runner.rb', line 17 def close @log_file.close end |