# class Puppet::ModuleTool::Skeleton

# Skeleton¶ ↑

This class provides methods for finding templates for the ‘generate’ action.

### Public Instance Methods

custom_path() click to toggle source

Return Pathname of custom templates directory.

    # File lib/puppet/module_tool/skeleton.rb, line 25
    def custom_path
      Pathname(Puppet.settings[:module_working_dir]) + 'skeleton'
    end

default_path() click to toggle source

Return Pathname of default template directory.

    # File lib/puppet/module_tool/skeleton.rb, line 30
    def default_path
      Pathname(__FILE__).dirname + 'skeleton/templates/generator'
    end

path() click to toggle source

Return Pathname with ‘generate’ templates.

    # File lib/puppet/module_tool/skeleton.rb, line 15
    def path
      paths.detect { |path| path.directory? }
    end

paths() click to toggle source

Return Pathnames to look for ‘generate’ templates.

    # File lib/puppet/module_tool/skeleton.rb, line 20
    def paths
      @paths ||= [ custom_path, default_path ]
    end