Class: CopyBot::Config

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

Constant Summary collapse

DEFAULT_PERMITTED_ENVIRONMENTS =
['development'].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
14
# File 'lib/copy_bot/config.rb', line 11

def initialize
  @logger = default_logger
  @permitted_environments = DEFAULT_PERMITTED_ENVIRONMENTS
end

Instance Attribute Details

#loggerLogger

Returns:

  • (Logger)


4
5
6
# File 'lib/copy_bot/config.rb', line 4

def logger
  @logger
end

#permitted_environmentsArray<String>

Returns:

  • (Array<String>)


7
8
9
# File 'lib/copy_bot/config.rb', line 7

def permitted_environments
  @permitted_environments
end