Class: Aruba::DockerRunInstance
- Inherits:
-
Object
- Object
- Aruba::DockerRunInstance
- Defined in:
- lib/aruba/tasks/docker_helpers.rb
Instance Method Summary collapse
-
#initialize(file, instance) ⇒ DockerRunInstance
constructor
A new instance of DockerRunInstance.
- #method_missing(m, *_args) ⇒ Object
- #respond_to_missing?(m) ⇒ Boolean
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 19 20 |
# File 'lib/aruba/tasks/docker_helpers.rb', line 16 def method_missing(m, *_args) return @file.public_send m, instance if @file.respond_to?(m) super end |
Instance Method Details
#respond_to_missing?(m) ⇒ Boolean
22 23 24 |
# File 'lib/aruba/tasks/docker_helpers.rb', line 22 def respond_to_missing?(m) @file.respond_to? m end |