Class: Servitor::ServiceConfiguration
- Inherits:
-
Object
- Object
- Servitor::ServiceConfiguration
- Includes:
- HasVariables
- Defined in:
- lib/service/service_definition/service_configuration.rb
Instance Method Summary collapse
Methods included from HasVariables
Instance Method Details
#resource(name, options = nil, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/service/service_definition/service_configuration.rb', line 7 def resource(name, =nil, &block) resource_configuration = ResourceConfiguration.new(name, ) resource_configuration.instance_exec(&block) if block_given? resources << resource_configuration end |
#resources ⇒ Object
13 14 15 |
# File 'lib/service/service_definition/service_configuration.rb', line 13 def resources @resources ||= [] end |