Sha256: 4b4ee909e612cd81a62c3d9b84015a156ac8a9d02f6be1bb29cf369ef5dc3dce
Contents?: true
Size: 390 Bytes
Versions: 36
Compression:
Stored size: 390 Bytes
Contents
class Jets::Commands::Runner def self.run(code) Jets.boot 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
36 entries across 36 versions & 1 rubygems