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

Version Path
puppet-8.3.0 lib/puppet/parser/functions/tag.rb
puppet-8.3.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.3.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.3.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.3.1 lib/puppet/parser/functions/tag.rb
puppet-8.3.1-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.3.1-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.3.1-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.2.0 lib/puppet/parser/functions/tag.rb
puppet-8.2.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.2.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.2.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.1.0 lib/puppet/parser/functions/tag.rb
puppet-8.1.0-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.1.0-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.1.0-universal-darwin lib/puppet/parser/functions/tag.rb
puppet-8.0.1 lib/puppet/parser/functions/tag.rb
puppet-8.0.1-x86-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.0.1-x64-mingw32 lib/puppet/parser/functions/tag.rb
puppet-8.0.1-universal-darwin lib/puppet/parser/functions/tag.rb