Class: PuppetMetadata::GithubActions

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet_metadata/github_actions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata, options) ⇒ GithubActions

Returns a new instance of GithubActions.

Parameters:



7
8
9
10
# File 'lib/puppet_metadata/github_actions.rb', line 7

def initialize(, options)
  @metadata = 
  @options  = options
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



3
4
5
# File 'lib/puppet_metadata/github_actions.rb', line 3

def 
  @metadata
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/puppet_metadata/github_actions.rb', line 3

def options
  @options
end

Instance Method Details

#outputs(at = nil) ⇒ Hash[Symbol, Any]

Returns The outputs for Github Actions.

Parameters:

  • at (Date) (defaults to: nil)

    The date when to generate the outputs. This affects the acceptance test matrix, which excludes EOL operating systems. Its primary purpose is reliable (unit) tests which don’t break over time.

Returns:

  • (Hash[Symbol, Any])

    The outputs for Github Actions



17
18
19
20
21
22
23
# File 'lib/puppet_metadata/github_actions.rb', line 17

def outputs(at = nil)
  {
    puppet_major_versions: puppet_major_versions,
    puppet_unit_test_matrix: puppet_unit_test_matrix,
    puppet_beaker_test_matrix: puppet_beaker_test_matrix(at),
  }
end