lib/pdk/generate/puppet_class.rb
def target_object_path
        @target_pp_path ||= begin
          class_name_parts = object_name.split('::')[1..-1]
          class_name_parts << 'init' if class_name_parts.empty?

          "#{File.join(module_dir, 'manifests', *class_name_parts)}.pp"
        end
      end
# Calculates the path to the .pp file that the new class will be written
# to.
#
# @return [String] the path where the new class will be written.
Calculates the path to the .pp file that the new class will be written
to.
Calculates the path to the . pp file that the new class will be written to .
def target_object_path
        @target_pp_path ||= begin
          class_name_parts = object_name.split('::')[1..-1]
          class_name_parts << 'init' if class_name_parts.empty?
          "#{File.join(module_dir, 'manifests', *class_name_parts)}.pp"
        end
      end
def target_object_path @target_pp_path ||= begin class_name_parts = object_name . split ( '::' ) [ 1 .. - 1 ] class_name_parts << 'init' if class_name_parts . empty? "#{File.join(module_dir, 'manifests', *class_name_parts)}.pp" end end
Calculates the path to the .pp file that the new class will be written
to.
Calculates the path to the . pp file that the new class will be written to .
the path where the new class will be written.
the path where the new class will be written .
String