Class: Indocker::Registries::Abstract

Inherits:
Object
  • Object
show all
Includes:
Concerns::Inspectable
Defined in:
lib/indocker/registries/abstract.rb

Direct Known Subclasses

Local, Remote

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Concerns::Inspectable

#inspect

Constructor Details

#initialize(repository_name) ⇒ Abstract

Returns a new instance of Abstract.



6
7
8
# File 'lib/indocker/registries/abstract.rb', line 6

def initialize(repository_name)
  @repository_name = repository_name
end

Instance Attribute Details

#repository_nameObject (readonly)

Returns the value of attribute repository_name.



4
5
6
# File 'lib/indocker/registries/abstract.rb', line 4

def repository_name
  @repository_name
end

Instance Method Details

#is_local?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/indocker/registries/abstract.rb', line 14

def is_local?
  self.is_a?(Indocker::Registries::Local)
end

#setup(*args) ⇒ Object



10
11
12
# File 'lib/indocker/registries/abstract.rb', line 10

def setup(*args)
  self
end