Class: Indocker::PrepareDirectives::DockerCp

Inherits:
Base show all
Defined in:
lib/indocker/directives/prepare_directives/docker_cp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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