Method: Puppet::TransBucket#push

Defined in:
lib/vendor/puppet/transportable.rb

#push(*args) ⇒ Object



144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/vendor/puppet/transportable.rb', line 144

def push(*args)
  args.each { |arg|
    case arg
    when Puppet::TransBucket, Puppet::TransObject
      # nada
    else
      raise Puppet::DevError,
        "TransBuckets cannot handle objects of type #{arg.class}"
    end
  }
  @children += args
end