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

#initialize ⇒ 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