Sha256: 1860a46a24bba6fdfee485333bad59eed3260914b7b6d0faafaf3fd490c974eb
Contents?: true
Size: 401 Bytes
Versions: 41
Compression:
Stored size: 401 Bytes
Contents
require "fileutils" module Sitepress # Creates new projects from a template. class ProjectTemplate DEFAULT_TEMPLATE = File.expand_path("../../../templates/default",__FILE__).freeze include FileUtils def initialize(path: DEFAULT_TEMPLATE) @path = path end def copy(to:) cp_r @path, to end def bundle Dir.chdir @path do end end end end
Version data entries
41 entries across 41 versions & 1 rubygems