Class: Indocker::PrepareDirectives::DockerCp
- Inherits:
-
Base
- Object
- Directives::Base
- Base
- Indocker::PrepareDirectives::DockerCp
- Defined in:
- lib/indocker/directives/prepare_directives/docker_cp.rb
Instance Attribute Summary collapse
-
#build_dir ⇒ Object
readonly
Returns the value of attribute build_dir.
-
#container_name ⇒ Object
readonly
Returns the value of attribute container_name.
-
#copy_actions ⇒ Object
readonly
Returns the value of attribute copy_actions.
Instance Method Summary collapse
-
#initialize(container_name, build_dir, &block) ⇒ DockerCp
constructor
A new instance of DockerCp.
Methods inherited from Directives::Base
#build_directive?, #container_directive?, #partial?, #prepare_directive?
Constructor Details
#initialize(container_name, build_dir, &block) ⇒ DockerCp
Returns a new instance of DockerCp.
4 5 6 7 8 9 |
# File 'lib/indocker/directives/prepare_directives/docker_cp.rb', line 4 def initialize(container_name, build_dir, &block) @container_name = container_name @build_dir = build_dir instance_exec &block if block_given? end |
Instance Attribute Details
#build_dir ⇒ Object (readonly)
Returns the value of attribute build_dir.
2 3 4 |
# File 'lib/indocker/directives/prepare_directives/docker_cp.rb', line 2 def build_dir @build_dir end |
#container_name ⇒ Object (readonly)
Returns the value of attribute container_name.
2 3 4 |
# File 'lib/indocker/directives/prepare_directives/docker_cp.rb', line 2 def container_name @container_name end |
#copy_actions ⇒ Object (readonly)
Returns the value of attribute copy_actions.
2 3 4 |
# File 'lib/indocker/directives/prepare_directives/docker_cp.rb', line 2 def copy_actions @copy_actions end |