Class: Deck::CommandLine::ContainerHelper
- Inherits:
-
Object
- Object
- Deck::CommandLine::ContainerHelper
- Defined in:
- lib/deck/command_line/container_helper.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
Instance Method Summary collapse
- #build_command ⇒ Object
-
#initialize(name, options) ⇒ ContainerHelper
constructor
A new instance of ContainerHelper.
- #run_command ⇒ Object
- #update_latest_tag ⇒ Object
Constructor Details
#initialize(name, options) ⇒ ContainerHelper
Returns a new instance of ContainerHelper.
4 5 6 7 8 |
# File 'lib/deck/command_line/container_helper.rb', line 4 def initialize(name, ) = load_blueprint name end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
2 3 4 |
# File 'lib/deck/command_line/container_helper.rb', line 2 def container @container end |
Instance Method Details
#build_command ⇒ Object
15 16 17 18 |
# File 'lib/deck/command_line/container_helper.rb', line 15 def build_command command = raw_build_command command end |
#run_command ⇒ Object
10 11 12 13 |
# File 'lib/deck/command_line/container_helper.rb', line 10 def run_command command = @container.run_command command end |
#update_latest_tag ⇒ Object
20 21 22 |
# File 'lib/deck/command_line/container_helper.rb', line 20 def update_latest_tag "docker tag -f #{@container.image_name} #{@container.repository}/#{@container.name}:latest" end |