Module: Alephant::Preview::Template

Defined in:
lib/alephant/preview/template.rb,
lib/alephant/preview/template/base.rb,
lib/alephant/preview/template/updater.rb

Defined Under Namespace

Classes: Base, Updater

Class Method Summary collapse

Class Method Details

.pathObject



7
8
9
# File 'lib/alephant/preview/template.rb', line 7

def self.path
  ENV["PREVIEW_TEMPLATE_PATH"] || "#{Dir.pwd}/components/lib"
end

.update(template_location) ⇒ Object



11
12
13
# File 'lib/alephant/preview/template.rb', line 11

def self.update(template_location)
  Updater.new.update(template_location)
end