Class: Kuby::Docker::Dockerfile::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/kuby/docker/dockerfile.rb

Direct Known Subclasses

Cmd, Copy, Env, Expose, From, Run, Workdir

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Command

Returns a new instance of Command.



7
8
9
# File 'lib/kuby/docker/dockerfile.rb', line 7

def initialize(*args)
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/kuby/docker/dockerfile.rb', line 5

def args
  @args
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/kuby/docker/dockerfile.rb', line 11

def to_s
  args.join(' ')
end