lib/gooddata/bricks/brick.rb in gooddata-0.6.0.pre11 vs lib/gooddata/bricks/brick.rb in gooddata-0.6.0

- old
+ new

@@ -1,13 +1,15 @@ -require File.join(File.dirname(__FILE__), 'base_downloader') -require File.join(File.dirname(__FILE__), 'utils') +# encoding: UTF-8 +require_relative 'base_downloader' +require_relative 'utils' + Dir[File.dirname(__FILE__) + '/commands/**/*_cmd.rb'].each do |file| require file end -require File.join(File.dirname(__FILE__), 'middleware/middleware') +require_relative 'middleware/middleware' module GoodData::Bricks class Pipeline def self.prepare(pipeline) pipeline.reverse.reduce(nil) do |memo, app| @@ -20,27 +22,24 @@ end end # Brick base class class Brick - def log(message) logger = @params[:gdc_logger] logger.info(message) unless logger.nil? end def name self.class end def version - fail "Method version should be reimplemented" + fail 'Method version should be reimplemented' end def call(params={}) @params = params - "" + '' end - end - end