class Volt::CLI::Runner
Public Class Methods
run_file(path)
click to toggle source
Runs the ruby file at the path
# File lib/volt/cli/runner.rb, line 7 def self.run_file(path) app = Volt.boot(Dir.pwd) # Require in the file at path require './' + path # disconnect from the message bus and flush all messages app.message_bus.disconnect! end