Module: SAFImportedDestinationObjectProperty
- Includes:
- EasyType::Types::Integer
- Defined in:
- lib/puppet/type/wls_saf_imported_destination_object/saf_imported_destination_object_property.rb
Overview
See the file “LICENSE” for the full license governing this code.
Instance Method Summary collapse
Instance Method Details
#actual_paths(resource) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/puppet/type/wls_saf_imported_destination_object/saf_imported_destination_object_property.rb', line 8 def actual_paths(resource) wls_path.collect do |p| path = case resource[:object_type].to_s when 'queue' "#{type_path}/SAFQueues/#{resource[key_name]}/#{p}" when 'topic' "#{type_path}/SAFTopics/#{resource[key_name]}/#{p}" else fail "#{resource[:object_type]} is not valid as an object_type. internal error" end path % resource.to_hash end end |