Module: Dapp::Dimg::Dapp::ConfigArtifactGroup
- Included in:
- Dapp
- Defined in:
- lib/dapp/dimg/dapp/config_artifact_group.rb
Instance Method Summary collapse
- #artifact_config(name, artifact_config) ⇒ Object
- #artifact_config_by_name(name) ⇒ Object
- #artifacts_configs ⇒ Object
Instance Method Details
#artifact_config(name, artifact_config) ⇒ Object
9 10 11 12 |
# File 'lib/dapp/dimg/dapp/config_artifact_group.rb', line 9 def artifact_config(name, artifact_config) raise(::Dapp::Error::Config, code: :artifact_already_exists, data: { name: name }) if artifacts_configs.key?(name) artifacts_configs[name] = artifact_config end |
#artifact_config_by_name(name) ⇒ Object
5 6 7 |
# File 'lib/dapp/dimg/dapp/config_artifact_group.rb', line 5 def artifact_config_by_name(name) artifacts_configs[name] || raise(::Dapp::Error::Config, code: :artifact_not_found, data: { name: name }) end |
#artifacts_configs ⇒ Object
14 15 16 |
# File 'lib/dapp/dimg/dapp/config_artifact_group.rb', line 14 def artifacts_configs @artifacts_configs ||= {} end |