Module: TwistlockControl::Actions::Container
- Defined in:
- lib/twistlock_control/actions/container.rb
Overview
-
Importing container descriptions
Class Method Summary collapse
- .add(properties) ⇒ Object
- .remove ⇒ Object
- .synchronize_description(container) ⇒ Object
- .update ⇒ Object
Class Method Details
.add(properties) ⇒ Object
7 8 9 10 11 |
# File 'lib/twistlock_control/actions/container.rb', line 7 def add(properties) container = Entities::Container.new(properties) synchronize_description(container) container end |
.remove ⇒ Object
17 18 19 |
# File 'lib/twistlock_control/actions/container.rb', line 17 def remove fail 'not implemented' end |
.synchronize_description(container) ⇒ Object
21 22 23 24 |
# File 'lib/twistlock_control/actions/container.rb', line 21 def synchronize_description(container) container.description = fetch_container_description(container) container.save end |
.update ⇒ Object
13 14 15 |
# File 'lib/twistlock_control/actions/container.rb', line 13 def update fail 'not implemented' end |