Class: DockerfileRB::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/dockerfile-rb/run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRun

Returns a new instance of Run.



4
5
# File 'lib/dockerfile-rb/run.rb', line 4

def initialize
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/dockerfile-rb/run.rb', line 3

def command
  @command
end

#executableObject (readonly)

Returns the value of attribute executable.



3
4
5
# File 'lib/dockerfile-rb/run.rb', line 3

def executable
  @executable
end

#parametersObject (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