lib/puppet/provider/mcx/mcxcontent.rb
# Given the resource name string, parse ds_type out.
Given the resource name string, parse ds_type out.
Given the resource name string parse ds_type out .
def parse_type(name)
    ds_type = name.split('/')[1]
    unless ds_type
      raise MCXContentProviderException,
      "Coult not parse ds_type from resource name '#{name}'.  Specify with ds_type parameter."
    end
    ds_type = ds_type.chop.downcase.to_sym
    unless TypeMap.key? ds_type
      raise MCXContentProviderException,
      "Coult not parse ds_type from resource name '#{name}'.  Specify with ds_type parameter."
    end
    ds_type
  end
def parse_type ( name ) ds_type = name . split ( '/' ) [ 1 ] unless ds_type raise MCXContentProviderException , "Coult not parse ds_type from resource name '#{name}'.  Specify with ds_type parameter." end ds_type = ds_type . chop . downcase . to_sym unless TypeMap . key? ds_type raise MCXContentProviderException , "Coult not parse ds_type from resource name '#{name}'.  Specify with ds_type parameter." end ds_type end
Given the resource name string, parse ds_type out.
Given the resource name string parse ds_type out .
# De-pluralize and downcase.
name
<not_specific>