Class: Volt::CLI::Runner

Inherits:
Object show all
Defined in:
lib/volt/cli/runner.rb

Class Method Summary collapse

Class Method Details

.run_file(path) ⇒ Object

Runs the ruby file at the path



7
8
9
10
11
12
# File 'lib/volt/cli/runner.rb', line 7

def self.run_file(path)
  Volt.boot(Dir.pwd)

  # Require in the file at path
  require './' + path
end