lib/beaker/host/eos.rb in beaker-2.31.0 vs lib/beaker/host/eos.rb in beaker-2.32.0
- old
+ new
@@ -3,21 +3,24 @@
end
module Eos
class Host < Unix::Host
- # Gets the path & file name for the puppet agent package on EOS
+ # Gets the path & file name for the puppet agent dev package on EOS
#
# @param [String] puppet_collection Name of the puppet collection to use
# @param [String] puppet_agent_version Version of puppet agent to get
# @param [Hash{Symbol=>String}] opts Options hash to provide extra values
#
+ # @note EOS doesn't use any additional options at this time, but does require
+ # both puppet_collection & puppet_agent_version, & will fail without them
+ #
# @raise [ArgumentError] If one of the two required parameters (puppet_collection,
# puppet_agent_version) is either not passed or set to nil
#
# @return [String, String] Path to the directory and filename of the package, respectively
- def get_puppet_agent_package_info( puppet_collection = nil, puppet_agent_version = nil, opts = {} )
- error_message = "Must provide %s argument to get puppet agent package information"
+ def puppet_agent_dev_package_info( puppet_collection = nil, puppet_agent_version = nil, opts = {} )
+ error_message = "Must provide %s argument to get puppet agent dev package information"
raise ArgumentError, error_message % "puppet_collection" unless puppet_collection
raise ArgumentError, error_message % "puppet_agent_version" unless puppet_agent_version
variant, version, arch, _ = self['platform'].to_array
release_path = "#{variant}/#{version}/#{puppet_collection}/#{arch}"
\ No newline at end of file