Sha256: 47d9233852586c5fa8783b67f73ce6d2b5cdb4841590c0e1c12e8f0067f23f91

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

require 'negroku/helpers/templates'
require 'negroku/helpers/logs'
require 'negroku/helpers/env'

# 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

3 entries across 3 versions & 1 rubygems

Version Path
negroku-2.0.0.pre5 lib/negroku/helpers.rb
negroku-2.0.0.pre4 lib/negroku/helpers.rb
negroku-2.0.0.pre3 lib/negroku/helpers.rb