Sha256: d168780ad7be594ce559de448f39a6727153632b47e5a9cdc6ebbedef4bd5658

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 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

4 entries across 4 versions & 1 rubygems

Version Path
puppet-8.4.0 lib/puppet/parser/functions/tag.rb
puppet-8.4.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.4.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.4.0-universal-darwin lib/puppet/parser/functions/tag.rb