Class: Aruba::DockerRunInstance

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/tasks/docker_helpers.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, instance) ⇒ DockerRunInstance

Returns a new instance of DockerRunInstance.


11
12
13
14
# File 'lib/aruba/tasks/docker_helpers.rb', line 11

def initialize(file, instance)
  @file     = file
  @instance = instance
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *_args) ⇒ Object


16
17
18
# File 'lib/aruba/tasks/docker_helpers.rb', line 16

def method_missing(m, *_args)
  @file.public_send m, instance
end

Instance Method Details

#respond_to_missing?(m) ⇒ Boolean

Returns:

  • (Boolean)

20
21
22
# File 'lib/aruba/tasks/docker_helpers.rb', line 20

def respond_to_missing?(m)
  @file.respond_to? m
end