class Middleman::Templates::Glyptotheque
Sculptor
Glyptotheque
template
Public Class Methods
gemfile_template()
click to toggle source
# File lib/sculptor/templates/glyptotheque.rb, line 13 def self.gemfile_template 'glyptotheque/Gemfile.tt' end
source_root()
click to toggle source
Template files are relative to this file @return [String]
# File lib/sculptor/templates/glyptotheque.rb, line 9 def self.source_root File.dirname(__FILE__) end
Public Instance Methods
build_scaffold!()
click to toggle source
Output the files @return [void]
# File lib/sculptor/templates/glyptotheque.rb, line 22 def build_scaffold! template 'glyptotheque/config.tt', File.join(location, 'config.rb') copy_file 'glyptotheque/.bowerrc', File.join(location, '.bowerrc') copy_file 'glyptotheque/.gitignore', File.join(location, '.gitignore') copy_file 'glyptotheque/.editorconfig', File.join(location, '.editorconfig') copy_file 'glyptotheque/bower.json', File.join(location, 'bower.json') directory 'glyptotheque/source', File.join(location, 'source') directory 'glyptotheque/data', File.join(location, 'data') end
generate_bower!()
click to toggle source
# File lib/sculptor/templates/glyptotheque.rb, line 32 def generate_bower! run("cd #{location}; bower install") end
generate_gitignore!()
click to toggle source
# File lib/sculptor/templates/glyptotheque.rb, line 17 def generate_gitignore! end