Class: Ec::Jigs::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ec/jigs/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
# File 'lib/ec/jigs/configuration.rb', line 9

def initialize
  if defined?(Rails)
    @config_folder = Rails.root.join('config', 'agents')
    @environment = Rails.env
  end
end

Instance Attribute Details

#config_folderObject

Returns the value of attribute config_folder.



6
7
8
# File 'lib/ec/jigs/configuration.rb', line 6

def config_folder
  @config_folder
end

#environmentObject

Returns the value of attribute environment.



7
8
9
# File 'lib/ec/jigs/configuration.rb', line 7

def environment
  @environment
end