Class: DatabasedotcomConsole::ScriptRunner

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

Instance Method Summary collapse

Constructor Details

#initialize(path, connection) ⇒ ScriptRunner

Returns a new instance of ScriptRunner.



31
32
33
34
35
# File 'lib/databasedotcom_console.rb', line 31

def initialize(path, connection)
	@dbdc = connection
	vars = binding
	eval(File.read(path), vars) if path.class == String
end