Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added logging

  • Loading branch information...
commit ea99e5accd96532a8642c7767fbbd1e5e9ef20cf 1 parent 44ee705
@michel authored
View
1  interfacelift.gemspec
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
"Rakefile",
"VERSION",
"bin/interfacelift",
+ "interfacelift.gemspec",
"lib/.DS_Store",
"lib/installer.rb",
"lib/interfacelift.rb",
View
10 lib/installer.rb
@@ -25,7 +25,7 @@ def install!
private
def install_images
return nil unless File.directory? "#{@theme_path}/public/images"
- File.gob("#{@theme_path}/public/images/*").each do |file|
+ Dir.gob("#{@theme_path}/public/images/*").each do |file|
puts "Installing #{@theme}/public/images/#{file}"
end
FileUtils.cp_r "#{@theme_path}/public/images","#{path}/public"
@@ -33,7 +33,7 @@ def install_images
def install_stylesheets
return nil unless File.directory? "#{@theme_path}/public/images"
- File.gob("#{@theme_path}/public/stylesheets/*").each do |file|
+ Dir.gob("#{@theme_path}/public/stylesheets/*").each do |file|
puts "Installing #{@theme}/public/stylesheets/#{file}"
end
FileUtils.cp_r "#{@theme_path}/public/stylesheets","#{path}/public" if File.directory? "#{@theme_path}/public/stylesheets"
@@ -41,7 +41,7 @@ def install_stylesheets
def install_layouts
return nil unless File.directory? "#{@theme_path}/app/views/layouts"
- File.gob("#{@theme_path}/app/views/layouts/*").each do |file|
+ Dir.gob("#{@theme_path}/app/views/layouts/*").each do |file|
puts "Installing #{@theme}/app/views/layouts/#{file}"
end
FileUtils.cp_r "#{@theme_path}/app/views/layouts","#{path}/app/views" if File.directory? "#{@theme_path}/views/layouts"
@@ -49,7 +49,7 @@ def install_layouts
def install_javascript
return nil unless File.directory? "#{@theme_path}/public/javascripts"
- File.gob("#{@theme_path}/public/javascripts/*").each do |file|
+ Dir.gob("#{@theme_path}/public/javascripts/*").each do |file|
puts "Installing #{@theme}/public/javascripts/#{file}"
end
FileUtils.cp_r "#{@theme_path}/public/javascripts","#{path}/public" if File.directory? "#{@theme_path}/public/javascripts"
@@ -57,7 +57,7 @@ def install_javascript
def install_shared
return nil unless File.directory? "#{SHARED}/icons"
- File.gob("#{SHARED}/icons/*").each do |file|
+ Dir.gob("#{SHARED}/icons/*").each do |file|
puts "Installing #{SHARED}/icons/#{file}"
end
FileUtils.cp_r "#{SHARED}/icons","#{path}/public/images/" if File.directory? "#{SHARED}/icons"
View
BIN  pkg/interfacelift-0.0.0.gem
Binary file not shown
View
2  spec/installer_spec.rb
@@ -41,7 +41,7 @@ def valid_arguments
valid_arguments
@installer = Installer.new(@path,@theme)
File.stub!(:directory?).and_return(true)
- File.stub!(:gob).and_return([])
+ Dir.stub!(:gob).and_return([])
FileUtils.stub!(:cp_r)
end
Please sign in to comment.
Something went wrong with that request. Please try again.