Class: Swiftly::Template

Inherits:
Package show all
Defined in:
lib/swiftly/template.rb

Instance Attribute Summary

Attributes inherited from Package

#location, #name, #status

Class Method Summary collapse

Methods inherited from Package

all, file, gather, load, retrieve, set

Class Method Details

.default_namesymbol

Sets the default template name to be used when running find and replace on the the template files

Returns:

  • (symbol)

    The name of the template



13
14
15
16
# File 'lib/swiftly/template.rb', line 13

def self.default_name

  :mask
end

.defaultsObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/swiftly/template.rb', line 18

def self.defaults

  self.set :template, :type => :wordpress do

    name     :default
    location 'https://github.com/micalexander/mask/archive/master.zip'
    status   :enabled

  end
end