Class: Buildkite::Builder::Loaders::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/builder/loaders/abstract.rb

Direct Known Subclasses

Extensions, Templates

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Abstract

Returns a new instance of Abstract.



14
15
16
17
18
# File 'lib/buildkite/builder/loaders/abstract.rb', line 14

def initialize(root)
  @root = root
  @assets = {}
  load
end

Instance Attribute Details

#assetsObject (readonly)

Returns the value of attribute assets.



7
8
9
# File 'lib/buildkite/builder/loaders/abstract.rb', line 7

def assets
  @assets
end

#rootObject (readonly)

Returns the value of attribute root.



8
9
10
# File 'lib/buildkite/builder/loaders/abstract.rb', line 8

def root
  @root
end

Class Method Details

.load(root) ⇒ Object



10
11
12
# File 'lib/buildkite/builder/loaders/abstract.rb', line 10

def self.load(root)
  new(root).assets
end