class New

Public Class Methods

custom_config() click to toggle source
# File lib/new.rb, line 39
def self.custom_config
  @custom_config ||= YAML.load(File.open(File.join(CUSTOM_DIR, CONFIG_FILE))).deep_symbolize_keys! rescue {}
end
custom_tasks() click to toggle source
# File lib/new.rb, line 35
def self.custom_tasks
  @custom_tasks ||= get_list TASKS_DIR_NAME, :custom
end
custom_templates() click to toggle source
# File lib/new.rb, line 27
def self.custom_templates
  @custom_templates ||= get_list TEMPLATES_DIR_NAME, :custom
end
default_tasks() click to toggle source
# File lib/new.rb, line 31
def self.default_tasks
  @default_tasks ||= get_list TASKS_DIR_NAME, :default
end
default_templates() click to toggle source
# File lib/new.rb, line 23
def self.default_templates
  @default_templates ||= get_list TEMPLATES_DIR_NAME, :default
end
tasks() click to toggle source

List all the available tasks

# File lib/new.rb, line 13
def self.tasks
  custom_tasks | default_tasks
end
templates() click to toggle source

List all the available templates

# File lib/new.rb, line 19
def self.templates
  custom_templates | default_templates
end