lib/pdk/module/templatedir.rb
def validate_module_template!
        unless File.directory?(@path)
          raise ArgumentError, _("The specified template '%{path}' is not a directory.") % { path: @path }
        end

        unless File.directory?(@moduleroot_dir) # rubocop:disable Style/GuardClause
          raise ArgumentError, _("The template at '%{path}' does not contain a 'moduleroot/' directory.") % { path: @path }
        end
      end
# Validate the content of the template directory.
#
# @raise [ArgumentError] If the specified path is not a directory.
# @raise [ArgumentError] If the template directory does not contain
# a directory called 'moduleroot'.
#
# @return [void]
#
# @api private
Validate the content of the template directory.
Validate the content of the template directory .
def validate_module_template!
        unless File.directory?(@path)
          raise ArgumentError, _("The specified template '%{path}' is not a directory.") % { path: @path }
        end
        unless File.directory?(@moduleroot_dir) 
          raise ArgumentError, _("The template at '%{path}' does not contain a 'moduleroot/' directory.") % { path: @path }
        end
      end
def validate_module_template! unless File . directory? ( @path ) raise ArgumentError , _ ( "The specified template '%{path}' is not a directory." ) % { path : @path } end unless File . directory? ( @moduleroot_dir ) raise ArgumentError , _ ( "The template at '%{path}' does not contain a 'moduleroot/' directory." ) % { path : @path } end end
Validate the content of the template directory.
Validate the content of the template directory .
# rubocop:disable Style/GuardClause
None
void
[ArgumentError] If the specified path is not a directory.
[ ArgumentError ] If the specified path is not a directory .
[ArgumentError] If the template directory does not contain a directory called 'moduleroot'.
[ ArgumentError ] If the template directory does not contain a directory called ' moduleroot ' .
api
None