Module: ProactiveSupport

Defined in:
lib/proactive_support.rb,
lib/proactive_support/engine.rb,
lib/proactive_support/version.rb,
lib/proactive_support/mgmt/flags.rb,
lib/proactive_support/mgmt/notes.rb,
app/models/proactive_support/flag.rb,
app/models/proactive_support/note.rb,
lib/proactive_support/mgmt/alerts.rb,
lib/proactive_support/adapters/alert.rb,
app/helpers/proactive_support/flags_helper.rb

Defined Under Namespace

Modules: Adapters, FlagsHelper, Mgmt Classes: AlertAdapterNotConfigured, Configuration, Engine, Flag, Note

Constant Summary collapse

INFO =
0
WARNING =
1
ERROR =
2
VERSION =
'0.0.9'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



35
36
37
38
39
# File 'lib/proactive_support.rb', line 35

def configuration
  @configuration ||= Configuration.new.tap do |c|
    c.transient_expiration = 1.day
  end
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



41
42
43
# File 'lib/proactive_support.rb', line 41

def configure
  yield(configuration)
end

.level_to_bootstrap(level) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/proactive_support.rb', line 24

def level_to_bootstrap(level)
  case level
    when INFO then 'info'
    when WARNING then 'warning'
    when ERROR then 'danger'
    else ''
  end
end