class Sitepress::ProjectTemplate
Creates new projects from a template.
Constants
- DEFAULT_TEMPLATE
Public Class Methods
new(path: DEFAULT_TEMPLATE)
click to toggle source
# File lib/sitepress/project_template.rb, line 10 def initialize(path: DEFAULT_TEMPLATE) @path = path end
Public Instance Methods
bundle()
click to toggle source
# File lib/sitepress/project_template.rb, line 18 def bundle Dir.chdir @path do end end
copy(to:)
click to toggle source
# File lib/sitepress/project_template.rb, line 14 def copy(to:) cp_r @path, to end