lib/negroku/helpers.rb in negroku-2.0.0.pre2 vs lib/negroku/helpers.rb in negroku-2.0.0.pre3

- old
+ new

@@ -1,18 +1,13 @@ +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 - -# Define los -def define_logs(namespace, hash) - logs = fetch(:negroku_logs, {}) - - logs[namespace] = hash - - set :negroku_logs, logs end