Sha256: c0f665343252bb6e69d0292cbbd34b890ac7b1d6a6800c1fc5374098635638a3

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 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

# Define los
def define_logs(namespace, hash)
  logs = fetch(:negroku_logs, {})

  logs[namespace] = hash

  set :negroku_logs, logs
end

Version data entries

1 entries across 1 versions & 1 rubygems

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