Class: Wes::Cloudkit::Configuration

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.namespaceObject

Returns the value of attribute namespace.



7
8
9
# File 'lib/wes/cloudkit/configuration.rb', line 7

def namespace
  @namespace
end

.rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/wes/cloudkit/configuration.rb', line 7

def root
  @root
end

Class Method Details

.app_configObject



9
10
11
# File 'lib/wes/cloudkit/configuration.rb', line 9

def app_config
  @@app_config = AppConfig.new
end

.aws_envObject



13
14
15
# File 'lib/wes/cloudkit/configuration.rb', line 13

def aws_env
  ENV["AWS_ENV"] || "development"
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



17
18
19
20
# File 'lib/wes/cloudkit/configuration.rb', line 17

def configure(&block)
  yield self
  self
end

.envObject



22
23
24
# File 'lib/wes/cloudkit/configuration.rb', line 22

def env
  ENV["RACK_ENV"] || "development"
end