Class: Buildkite::Builder::Plugin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, default_attributes = {}) ⇒ Plugin

Returns a new instance of Plugin.



12
13
14
15
16
# File 'lib/buildkite/builder/plugin.rb', line 12

def initialize(uri, default_attributes = {})
  @uri = uri
  @source, @version = uri.split('#')
  @default_attributes = default_attributes
end

Instance Attribute Details

#default_attributesObject (readonly)

Returns the value of attribute default_attributes.



6
7
8
# File 'lib/buildkite/builder/plugin.rb', line 6

def default_attributes
  @default_attributes
end

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/buildkite/builder/plugin.rb', line 6

def source
  @source
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/buildkite/builder/plugin.rb', line 6

def uri
  @uri
end

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/buildkite/builder/plugin.rb', line 6

def version
  @version
end