Class | InterfaceLift::Installer |
In: |
lib/installer.rb
|
Parent: | Object |
APP_ROOT | = | File.expand_path(File.join(File.dirname(__FILE__), '..')) |
SHARED | = | "#{APP_ROOT}/lib/templates/shared" |
path | [R] | |
theme | [R] | |
theme_path | [R] |
# File lib/installer.rb, line 8 def initialize(path,theme) @path = path @theme = theme @theme_path = "#{APP_ROOT}/lib/templates/#{theme}" raise "Given path does not contain a rails app." unless File.directory? "#{@path}/public" raise "Theme #{@theme} is not available." unless File.directory? @theme_path end