Sha256: 8a136ef5419599d687a363acd21fd40ee5e1259c7c19e9412b241af94f147e7c

Contents?: true

Size: 253 Bytes

Versions: 33

Compression:

Stored size: 253 Bytes

Contents

require 'volt/boot'

module Volt
  class CLI
    class Runner
      # Runs the ruby file at the path
      def self.run_file(path)
        Volt.boot(Dir.pwd)

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
volt-0.9.4.pre5 lib/volt/cli/runner.rb
volt-0.9.4.pre3 lib/volt/cli/runner.rb
volt-0.9.4.pre2 lib/volt/cli/runner.rb
volt-0.9.4.pre1 lib/volt/cli/runner.rb
volt-0.9.3 lib/volt/cli/runner.rb
volt-0.9.3.pre6 lib/volt/cli/runner.rb
volt-0.9.3.pre5 lib/volt/cli/runner.rb
volt-0.9.3.pre4 lib/volt/cli/runner.rb
volt-0.9.3.pre3 lib/volt/cli/runner.rb
volt-0.9.3.pre2 lib/volt/cli/runner.rb
volt-0.9.3.pre1 lib/volt/cli/runner.rb
volt-0.9.2 lib/volt/cli/runner.rb
volt-0.9.1 lib/volt/cli/runner.rb
volt-0.9.1.pre5 lib/volt/cli/runner.rb
volt-0.9.1.pre4 lib/volt/cli/runner.rb
volt-0.9.1.pre3 lib/volt/cli/runner.rb
volt-0.9.1.pre2 lib/volt/cli/runner.rb
volt-0.9.1.pre1 lib/volt/cli/runner.rb
volt-0.9.0 lib/volt/cli/runner.rb
volt-0.9.0.pre7 lib/volt/cli/runner.rb