Permalink
Browse files

Previously added/installed themes, no longer require internet connect…

…ion to install on rails applications. This enables users to apply the gem offline. New themes however do require internet connection
  • Loading branch information...
1 parent 674559f commit a7dae64a5c0949a8559cc661b483d93f333deca6 Jeroen van Schagen committed Nov 20, 2009
Showing with 5 additions and 5 deletions.
  1. +5 −5 bin/interfacelift
View
@@ -19,15 +19,15 @@ command :install do |c|
puts "You need to specify a theme name."
else
begin
- raise "You need to provide the git repo of #{theme}, using the --repo flag" if options.repo.nil?
-
theme = args[0]
path = args[1].nil? ? "." : args[1]
catalog = InterfaceLift::Catalog.new
- # Retrieve theme from repository
- puts "Fetching theme #{theme}..."
- catalog.add_theme(theme, options.repo)
+ if ! catalog.theme_exists?(theme)
+ # Retrieve theme from repository
+ puts "Fetching theme #{theme}..."
+ catalog.add_theme(theme, options.repo)
+ end
# Transfer theme from catalog in rails app
installer = InterfaceLift::Installer.new(path, theme)

0 comments on commit a7dae64

Please sign in to comment.