Sha256: 29878e8e69bd7a18da8541150669ffda76e71393209a26f974af064d628ae12b
Contents?: true
Size: 510 Bytes
Versions: 8
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true # Tag the current scope with each passed name Puppet::Parser::Functions.newfunction(:tag, :arity => -2, :doc => "Add the specified tags to the containing class or definition. All contained objects will then acquire that tag, also. ") do |vals| if Puppet[:tasks] raise Puppet::ParseErrorWithIssue.from_issue_and_stack( Puppet::Pops::Issues::CATALOG_OPERATION_NOT_SUPPORTED_WHEN_SCRIPTING, { :operation => 'tag' } ) end self.resource.tag(*vals) end
Version data entries
8 entries across 8 versions & 1 rubygems