lib/vanity/templates.rb
def custom_template_path_valid?
      Vanity.playground.custom_templates_path &&
        File.exist?(Vanity.playground.custom_templates_path) &&
        !Dir[File.join(Vanity.playground.custom_templates_path, '*')].empty?
    end
def custom_template_path_valid?
      Vanity.playground.custom_templates_path &&
        File.exist?(Vanity.playground.custom_templates_path) &&
        !Dir[File.join(Vanity.playground.custom_templates_path, '*')].empty?
    end
def custom_template_path_valid? Vanity . playground . custom_templates_path && File . exist? ( Vanity . playground . custom_templates_path ) && ! Dir [ File . join ( Vanity . playground . custom_templates_path , '*' ) ] . empty? end
Check to make sure we set a custome path, it exists, and there are non-
 dotfiles in the directory.
Check to make sure we set a custome path it exists and there are non - dotfiles in the directory .