Sha256: 9e257288cfcbaaee707b9c75dcbc08d3cd4e7077d6e2c67ecdbaf8362b5580fd
Contents?: true
Size: 515 Bytes
Versions: 20
Compression:
Stored size: 515 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
20 entries across 20 versions & 1 rubygems