Class: Get::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



23
24
25
# File 'lib/get/configuration.rb', line 23

def adapter
  @adapter
end

#environmentObject

Returns the value of attribute environment.



23
24
25
# File 'lib/get/configuration.rb', line 23

def environment
  @environment
end

Instance Method Details

#development_mode=(mode) ⇒ Object



30
31
32
# File 'lib/get/configuration.rb', line 30

def development_mode=(mode)
  Horza.configure { |config| config.development_mode = mode }
end

#namespaces=(namespaces) ⇒ Object



34
35
36
37
# File 'lib/get/configuration.rb', line 34

def namespaces=(namespaces)
  raise ::Get::Errors::Base.new('namespaces must be an array') unless namespaces.is_a? Array
  Horza.configure { |config| config.namespaces = namespaces }
end