Sha256: 049ee9685b0bf56ab45ec3fcf72275e74c8c29ec84bd6f339441d180af133c4d
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
Contents
module Evergreen class Helper attr_reader :name, :suite def initialize(suite, name) @suite = suite @name = name end def root suite.root end def full_path File.join(root, Evergreen.helper_dir, name) end def read if full_path =~ /\.coffee$/ require 'coffee-script' CoffeeScript.compile(File.read(full_path)) else File.read(full_path) end end alias_method :contents, :read def exist? File.exist?(full_path) end end end
Version data entries
6 entries across 6 versions & 1 rubygems