Method: Eos::Host#puppet_agent_dev_package_info
- Defined in:
- lib/beaker/host/eos.rb
#puppet_agent_dev_package_info(puppet_collection = nil, puppet_agent_version = nil, opts = {}) ⇒ String
Note:
EOS doesn’t use any additional options at this time, but does require both puppet_collection & puppet_agent_version, & will fail without them
Gets the path & file name for the puppet agent dev package on EOS
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/beaker/host/eos.rb', line 21 def puppet_agent_dev_package_info( puppet_collection = nil, puppet_agent_version = nil, opts = {} ) = "Must provide %s argument to get puppet agent dev package information" raise ArgumentError, % "puppet_collection" unless puppet_collection raise ArgumentError, % "puppet_agent_version" unless puppet_agent_version variant, version, arch, _ = self['platform'].to_array release_path = "#{variant}/#{version}/#{puppet_collection}/#{arch}" release_file = "puppet-agent-#{puppet_agent_version}-1.#{variant}#{version}.#{arch}.swix" return release_path, release_file end |