Sha256: 058e2c6642ad89ad6427dd8df43e89079ed2121411b6bf808d2bf4f9c54fe1ac
Contents?: true
Size: 397 Bytes
Versions: 32
Compression:
Stored size: 397 Bytes
Contents
class Jets::Commands::Runner def self.run(code) Jets.eager_load! if code =~ %r{^file://} path = code.sub('file://', '') full_path = "#{Jets.root}#{path}" if File.exist?(full_path) code = IO.read(full_path) else puts "ERROR: file not found at #{full_path}".colorize(:red) exit 1 end end eval(code) # inline script end end
Version data entries
32 entries across 32 versions & 1 rubygems