Class: Safely::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/safely/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
10
11
12
13
# File 'lib/safely/config.rb', line 7

def initialize
  @strategies = [
    Safely::Strategy::Hoptoad,
    Safely::Strategy::Mail,
    Safely::Strategy::Log
  ]
end

Instance Attribute Details

#strategiesObject (readonly)

List of strategies to use



5
6
7
# File 'lib/safely/config.rb', line 5

def strategies
  @strategies
end

Instance Method Details

#hoptoad_keyObject



15
16
17
18
# File 'lib/safely/config.rb', line 15

def hoptoad_key
  $stderr.write "DEPRECATED: Call Safely::Strategy::Hoptoad.hoptoad_key"
  Safely::Strategy::Hoptoad.hoptoad_key
end

#hoptoad_key=(key) ⇒ Object



20
21
22
23
# File 'lib/safely/config.rb', line 20

def hoptoad_key=( key )
  $stderr.write "DEPRECATED: Call Safely::Strategy::Hoptoad.hoptoad_key="
  Safely::Strategy::Hoptoad.hoptoad_key=( key )
end