Class InterfaceLift::Installer
In: lib/installer.rb
Parent: Object

Methods

install!   new  

Constants

APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
SHARED = "#{APP_ROOT}/lib/templates/shared"

Attributes

path  [R] 
theme  [R] 
theme_path  [R] 

Public Class methods

[Source]

# 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

Public Instance methods

[Source]

# File lib/installer.rb, line 17
      def install!  
        install_images
        install_stylesheets
        install_layouts
        install_javascript
        install_shared  
        theme_install
      end

[Validate]