Sha256: 5c8e76277512695246ad82637882bd589d71b3931cd3434e9af9753f9ed4129a

Contents?: true

Size: 485 Bytes

Versions: 471

Compression:

Stored size: 485 Bytes

Contents

# 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

471 entries across 471 versions & 2 rubygems

Version Path
puppet-7.34.0 lib/puppet/parser/functions/tag.rb
puppet-7.34.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.34.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.34.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-7.33.0 lib/puppet/parser/functions/tag.rb
puppet-7.33.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.33.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.33.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-7.32.1 lib/puppet/parser/functions/tag.rb
puppet-7.32.1-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.32.1-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.32.1-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-7.31.0 lib/puppet/parser/functions/tag.rb
puppet-7.31.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.31.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.31.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-7.30.0 lib/puppet/parser/functions/tag.rb
puppet-7.30.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.30.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-7.30.0-universal-darwin lib/puppet/parser/functions/tag.rb