Module: Rails::Service

Defined in:
lib/rails/service.rb,
lib/rails/service/boot.rb,
lib/rails/service/config.rb,
lib/rails/service/engine.rb,
lib/rails/service/context.rb,
lib/rails/service/version.rb,
lib/rails/service/manifest.rb,
lib/rails/service/app_config.rb,
lib/rails/service/admin_view_resolver.rb,
app/helpers/rails/service/admin_helper.rb

Defined Under Namespace

Modules: AdminHelper, AppConfig, Boot, Manifest Classes: AdminController, AdminViewResolver, BaseController, Config, Context, Engine, StatusController

Constant Summary collapse

VERSION =
'0.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_configObject (readonly)

Returns the value of attribute app_config.



12
13
14
# File 'lib/rails/service.rb', line 12

def app_config
  @app_config
end

.configObject (readonly)

Returns the value of attribute config.



12
13
14
# File 'lib/rails/service.rb', line 12

def config
  @config
end

.contextObject (readonly)

Returns the value of attribute context.



12
13
14
# File 'lib/rails/service.rb', line 12

def context
  @context
end

.loggerObject (readonly)

Returns the value of attribute logger.



12
13
14
# File 'lib/rails/service.rb', line 12

def logger
  @logger
end

.manifestObject (readonly)

Returns the value of attribute manifest.



12
13
14
# File 'lib/rails/service.rb', line 12

def manifest
  @manifest
end

Class Method Details

.initialize!Object



15
16
17
18
19
20
21
# File 'lib/rails/service.rb', line 15

def initialize!
  @config     = Config.new
  @context    = Context.new(config._for_context)
  @manifest   = Manifest.new(config._for_manifest)
  @app_config = AppConfig.new(config._for_app_config)
  @logger     = @config.logger
end