Class: Mockuper

Inherits:
Object
  • Object
show all
Defined in:
lib/mockuper.rb

Class Method Summary collapse

Class Method Details

.add_template(source_path, template, templates_dir) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/mockuper.rb', line 7

def self.add_template(source_path, template, templates_dir)
  begin
    FileUtils.cp("#{templates_dir}/#{template}.html", source_path)
  rescue
    puts "you must type a valid mockup path"
  end
end

.create_source(name, defaults_dir) ⇒ Object



3
4
5
# File 'lib/mockuper.rb', line 3

def self.create_source(name, defaults_dir)
  FileUtils.cp_r(defaults_dir, name)
end