Class: Bricky::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/bricky/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image) ⇒ Image

Returns a new instance of Image.



6
7
8
9
# File 'lib/bricky/image.rb', line 6

def initialize(image)
  self.name = format_name(image)
  self.path = format_path(image)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/bricky/image.rb', line 3

def name
  @name
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/bricky/image.rb', line 4

def path
  @path
end

Instance Method Details

#full_pathObject



11
12
13
# File 'lib/bricky/image.rb', line 11

def full_path
  "#{path}/Dockerfile"
end