Sha256: 8b0abedeecb7a6d03cfc19d755680d5347ef20c5fcba952e8e23cc9e157c3261

Contents?: true

Size: 361 Bytes

Versions: 23

Compression:

Stored size: 361 Bytes

Contents

require 'volt/boot'

module Volt
  class CLI
    class Runner
      # Runs the ruby file at the path
      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
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/cli/runner.rb
volt-0.9.7.pre7 lib/volt/cli/runner.rb
volt-0.9.7.pre6 lib/volt/cli/runner.rb
volt-0.9.7.pre5 lib/volt/cli/runner.rb
volt-0.9.7.pre3 lib/volt/cli/runner.rb
volt-0.9.7.pre2 lib/volt/cli/runner.rb
volt-0.9.6 lib/volt/cli/runner.rb
volt-0.9.6.pre3 lib/volt/cli/runner.rb
volt-0.9.6.pre2 lib/volt/cli/runner.rb
volt-0.9.6.pre1 lib/volt/cli/runner.rb
volt-0.9.5 lib/volt/cli/runner.rb
volt-0.9.5.pre12 lib/volt/cli/runner.rb
volt-0.9.5.pre11 lib/volt/cli/runner.rb
volt-0.9.5.pre9 lib/volt/cli/runner.rb
volt-0.9.5.pre8 lib/volt/cli/runner.rb
volt-0.9.5.pre7 lib/volt/cli/runner.rb
volt-0.9.5.pre6 lib/volt/cli/runner.rb
volt-0.9.5.pre5 lib/volt/cli/runner.rb
volt-0.9.5.pre4 lib/volt/cli/runner.rb
volt-0.9.5.pre3 lib/volt/cli/runner.rb