Class: DockerfileRB::Run
- Inherits:
-
Object
- Object
- DockerfileRB::Run
- Defined in:
- lib/dockerfile-rb/run.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
- #exec(executable, parameters) ⇒ Object
-
#initialize ⇒ Run
constructor
A new instance of Run.
- #shell(command) ⇒ Object
Constructor Details
#initialize ⇒ Run
Returns a new instance of Run.
4 5 |
# File 'lib/dockerfile-rb/run.rb', line 4 def initialize end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/dockerfile-rb/run.rb', line 3 def command @command end |
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
3 4 5 |
# File 'lib/dockerfile-rb/run.rb', line 3 def executable @executable end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
3 4 5 |
# File 'lib/dockerfile-rb/run.rb', line 3 def parameters @parameters end |
Instance Method Details
#exec(executable, parameters) ⇒ Object
12 13 14 15 16 |
# File 'lib/dockerfile-rb/run.rb', line 12 def exec(executable, parameters) @executable = executable @parameters = parameters self end |
#shell(command) ⇒ Object
7 8 9 10 |
# File 'lib/dockerfile-rb/run.rb', line 7 def shell(command) @command = command self end |