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

Version Path
puppet-8.10.0 lib/puppet/parser/functions/tag.rb
puppet-8.10.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.10.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.10.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.9.0 lib/puppet/parser/functions/tag.rb
puppet-8.9.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.9.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.9.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.8.1 lib/puppet/parser/functions/tag.rb
puppet-8.8.1-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.8.1-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.8.1-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.7.0 lib/puppet/parser/functions/tag.rb
puppet-8.7.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.7.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.7.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.6.0 lib/puppet/parser/functions/tag.rb
puppet-8.6.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.6.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.6.0-universal-darwin lib/puppet/parser/functions/tag.rb