Module: Soca

Defined in:
lib/soca/plugins/macro.rb,
lib/soca.rb,
lib/soca/cli.rb,
lib/soca/plugin.rb,
lib/soca/pusher.rb,
lib/soca/plugins/jim.rb,
lib/soca/plugins/haml.rb,
lib/soca/plugins/compass.rb,
lib/soca/plugins/mustache.rb,
lib/soca/plugins/credentials.rb,
lib/soca/plugins/coffeescript.rb

Overview

see tinyurl.com/6ab5svl views in coucdb < 1.1.x does not allow you to require modules so we can use couchapp style macros instead

Defined Under Namespace

Modules: Plugins Classes: CLI, Plugin, Pusher

Constant Summary collapse

VERSION =
'0.3.3'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debugObject

Returns the value of attribute debug.



13
14
15
# File 'lib/soca.rb', line 13

def debug
  @debug
end

Class Method Details

.loggerObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/soca.rb', line 20

def self.logger
  @logger ||= LOGGER if defined?(LOGGER)
  if !@logger
    @logger           = Logger.new(STDOUT)
    @logger.level     = Logger::ERROR
    @logger.formatter = Proc.new {|s, t, n, msg| "#{msg}\n"}
    @logger
  end
  @logger
end

.logger=(logger) ⇒ Object



16
17
18
# File 'lib/soca.rb', line 16

def self.logger=(logger)
  @logger = logger
end