Sha256: 459bf0f4e77c58894ff3f8a26ce6270bd58ee758c11a9a1e861d3553aa1ecac5

Contents?: true

Size: 252 Bytes

Versions: 13

Compression:

Stored size: 252 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

13 entries across 13 versions & 1 rubygems

Version Path
volt-0.8.27.beta2 lib/volt/cli/runner.rb
volt-0.8.27.beta1 lib/volt/cli/runner.rb
volt-0.8.26.beta1 lib/volt/cli/runner.rb
volt-0.8.26 lib/volt/cli/runner.rb
volt-0.8.24 lib/volt/cli/runner.rb
volt-0.8.23 lib/volt/cli/runner.rb
volt-0.8.22 lib/volt/cli/runner.rb
volt-0.8.22.beta2 lib/volt/cli/runner.rb
volt-0.8.22.beta1 lib/volt/cli/runner.rb
volt-0.8.21 lib/volt/cli/runner.rb
volt-0.8.20 lib/volt/cli/runner.rb
volt-0.8.19 lib/volt/cli/runner.rb
volt-0.8.18 lib/volt/cli/runner.rb