Class: Navy::AppContainerBuilder
- Inherits:
-
Object
- Object
- Navy::AppContainerBuilder
- Includes:
- ContainerBuilding
- Defined in:
- lib/navy/app_container_builder.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#specification ⇒ Object
readonly
Returns the value of attribute specification.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(app, config, options) ⇒ AppContainerBuilder
constructor
A new instance of AppContainerBuilder.
Constructor Details
#initialize(app, config, options) ⇒ AppContainerBuilder
Returns a new instance of AppContainerBuilder.
6 7 8 9 10 |
# File 'lib/navy/app_container_builder.rb', line 6 def initialize(app, config, ) = .dup [:app] = app [:config] = config end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
4 5 6 |
# File 'lib/navy/app_container_builder.rb', line 4 def dependencies @dependencies end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/navy/app_container_builder.rb', line 4 def end |
#specification ⇒ Object (readonly)
Returns the value of attribute specification.
4 5 6 |
# File 'lib/navy/app_container_builder.rb', line 4 def specification @specification end |
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/navy/app_container_builder.rb', line 12 def build @specification = { :type => "application", :env => {}, :links => [], :volumes_from => [] } @dependencies = [] app = .delete :app config = .delete :config = build_specification(app, config) build_dependencies(app, config) build_container end |