Top Level Namespace

Defined Under Namespace

Modules: Aws, CloudFormationTool

Instance Method Summary collapse

Instance Method Details

#debug(message = nul, &block) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/cloud_formation_tool.rb', line 18

def debug(message = nul, &block)
  logger.debug(if message.nil?
    yield
  else
    message
  end)
end

#error(message = nul, &block) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/cloud_formation_tool.rb', line 34

def error(message = nul, &block)
  logger.error(if message.nil?
    yield
  else
    message
  end)
end

#log(message = nil, &block) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/cloud_formation_tool.rb', line 10

def log(message = nil, &block)
  logger.info(if message.nil?
    yield
  else
    message
  end)
end

#loggerObject



6
7
8
# File 'lib/cloud_formation_tool.rb', line 6

def logger
  ($__logger ||= Logger.new(STDERR))
end

#warn(message = nul, &block) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/cloud_formation_tool.rb', line 26

def warn(message = nul, &block)
  logger.warn(if message.nil?
    yield
  else
    message
  end)
end