Sha256: cc9389b0519544d328c28a3dd83d66e3551a8b9233447d4bf3a80386b1c86db8

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

# Find out if a specific library file was already required
def was_required?(file)
  rex = Regexp.new("/#{Regexp.quote(file)}\.(so|o|sl|rb)?")
  $LOADED_FEATURES.find { |f| f =~ rex }
end

def load_task(name)
  load File.join(File.dirname(__FILE__), 'tasks', "#{name}.rake")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
negroku-2.0.0.pre1 lib/negroku/helpers.rb