Class: SetfilesCommand

Inherits:
PuppetMetadata::BaseCommand show all
Defined in:
lib/puppet_metadata/command/setfiles.rb

Overview

Show the various setfiles supported by the metadata

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PuppetMetadata::BaseCommand

command, commands, #filename, #initialize, #metadata

Constructor Details

This class inherits a constructor from PuppetMetadata::BaseCommand

Class Method Details

.parser(_options) ⇒ Object



5
6
7
8
9
# File 'lib/puppet_metadata/command/setfiles.rb', line 5

def self.parser(_options)
  OptionParser.new do |opts|
    opts.set_program_name 'Show the various setfiles supported by the metadata'
  end
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/puppet_metadata/command/setfiles.rb', line 11

def run
  options = {
    domain: 'example.com',
    minimum_major_puppet_version: nil,
    beaker_fact: nil,
    beaker_hosts: nil,
  }

  .github_actions(options).outputs[:puppet_beaker_test_matrix].each do |os|
    puts "BEAKER_SETFILE=\"#{os[:env]['BEAKER_SETFILE']}\""
  end
end