Sha256: 688c3a50c97ee28e1c29cc2362de5a37c49397f4cc07151cb01f369fe5a9a2d1
Contents?: true
Size: 505 Bytes
Versions: 20
Compression:
Stored size: 505 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 resource.tag(*vals) end
Version data entries
20 entries across 20 versions & 1 rubygems