Class: Hitcher::Docker::DockerDsl

Inherits:
Object
  • Object
show all
Includes:
Dsl
Defined in:
lib/hitcher/providers/docker/dsl.rb

Overview

initialize dynamically by DSL method container()

Instance Attribute Summary

Attributes included from Dsl

#cName, #df, #exposes, #image, #interactive_mode, #mounts, #tty_mode

Instance Method Summary collapse

Methods included from Dsl

#block_kw?, #command, #command_executor, #container_name, #dockerfile, #expose, #gen, #handle_block, #image_name, #interactive, #mount, #tty

Constructor Details

#initialize(opts = { logger: Hitcher::Global.instance.glog }) ⇒ DockerDsl

Returns a new instance of DockerDsl.



247
248
249
# File 'lib/hitcher/providers/docker/dsl.rb', line 247

def initialize(opts = { logger: Hitcher::Global.instance.glog })
  @logger = opts[:logger] || Hitcher::Global.instance.glog
end