Skip to content

Commit

Permalink
add gitignore for svn and ds_store, minor update to rake installation…
Browse files Browse the repository at this point in the history
… tasks for directory detection and correct project name
  • Loading branch information
vann committed Oct 28, 2008
1 parent ac5f2d7 commit 7749bd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.svn
.svn/*
.DS_Store
8 changes: 5 additions & 3 deletions tasks/ibox_tasks.rake
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
require 'fileutils'

IBOX_PATH = "#{RAILS_ROOT}/vendor/plugins/ibox"
IBOX_PATH = "#{RAILS_ROOT}/vendor/plugins/ibox-rails-plugin"
PUBLIC_PATH = "#{RAILS_ROOT}/public"

desc 'Copies all Ibox files to app directories'
task :install_ibox do
Dir.mkdir(File.join(PUBLIC_PATH,"javascripts/ibox"))
Dir.mkdir(File.join(PUBLIC_PATH,"stylesheets/ibox"))
ibox_public_path = File.join(PUBLIC_PATH,"javascripts/ibox")
css_public_path = File.join(PUBLIC_PATH,"stylesheets/ibox")
Dir.mkdir(ibox_public_path) unless File.exists?(ibox_public_path)
Dir.mkdir(css_public_path) unless File.exists?(css_public_path)

ibox_js, public_js = Dir.glob(File.join(IBOX_PATH,"javascripts","*.js")), File.join(PUBLIC_PATH,"javascripts/ibox")
ibox_css, public_css = Dir.glob(File.join(IBOX_PATH,"stylesheets","*.css")), File.join(PUBLIC_PATH, "stylesheets/ibox")
Expand Down

0 comments on commit 7749bd4

Please sign in to comment.