Module: Purobu

Defined in:
lib/purobu/dsl.rb,
lib/purobu/log.rb,
lib/purobu/test.rb,
lib/purobu/heroku.rb,
lib/purobu/runner.rb,
lib/purobu/helpers.rb,
lib/purobu/version.rb,
lib/purobu/reporter.rb,
lib/purobu/configuration.rb,
lib/purobu/heroku_helpers.rb,
lib/purobu/database_connection.rb

Defined Under Namespace

Modules: Helpers, HerokuHelpers Classes: Configuration, DSL, DatabaseConnection, Heroku, Reporter, Runner, Test

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.log(data, &block) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/purobu/log.rb', line 3

def self.log(data, &block)
  if Configuration.verbose
    Scrolls.log(data, &block)
  else
    yield
  end
end

.log_context(data, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/purobu/log.rb', line 11

def self.log_context(data, &block)
  if Configuration.verbose
    Scrolls.context(data, &block)
  else
    yield
  end
end