Class: Drone::SystemRepresenter

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::JSON
Defined in:
lib/drone/models/system_representer.rb

Overview

Transform ‘system` JSON payload

Instance Attribute Summary collapse

Instance Attribute Details

#globalsArray

Returns the used global environment vars.

Returns:

  • (Array)

    the used global environment vars



46
# File 'lib/drone/models/system_representer.rb', line 46

collection :globals

Returns the link to the Drone server.

Returns:

  • (String)

    the link to the Drone server



32
33
# File 'lib/drone/models/system_representer.rb', line 32

property :link,
as: :link_url

#pluginsArray

Returns the used plugins within the build.

Returns:

  • (Array)

    the used plugins within the build



37
# File 'lib/drone/models/system_representer.rb', line 37

collection :plugins

#privilegedArray

Returns the list of privileged plugins.

Returns:

  • (Array)

    the list of privileged plugins



41
42
# File 'lib/drone/models/system_representer.rb', line 41

collection :privileged,
as: :privileged_plugins

#versionString

Returns the version of the Drone server.

Returns:

  • (String)

    the version of the Drone server



28
# File 'lib/drone/models/system_representer.rb', line 28

property :version