Top Level Namespace

Includes:
Socket::Constants

Defined Under Namespace

Modules: God, Kernel Classes: Module, Numeric

Constant Summary collapse

CONTACT_DEPS =
{
  webhook: ['json'],
  slack: ['json'],
  airbrake: ['airbrake']
}.freeze
CONTACT_LOAD_SUCCESS =
{}
LOG =

App wide logging system

God::Logger.new
GOD_ROOT =
File.expand_path(File.join(File.dirname(__FILE__), '..'))

Instance Method Summary collapse

Instance Method Details

#applog(watch, level, text) ⇒ Object



90
91
92
# File 'lib/god.rb', line 90

def applog(watch, level, text)
  LOG.log(watch, level, text)
end

#create_dummy_makefileObject



7
8
9
10
11
12
# File 'ext/god/extconf.rb', line 7

def create_dummy_makefile
  File.open('Makefile', 'w') do |f|
    f.puts 'all:'
    f.puts 'install:'
  end
end

#load_contact(name) ⇒ Object



72
73
74
75
76
77
# File 'lib/god.rb', line 72

def load_contact(name)
  require "god/contacts/#{name}"
  CONTACT_LOAD_SUCCESS[name] = true
rescue LoadError
  CONTACT_LOAD_SUCCESS[name] = false
end

#root_bindingObject

Return the binding of god’s root level



103
104
105
# File 'lib/god.rb', line 103

def root_binding
  binding
end