Permalink
Browse files

Fix Lithium library path + minor cleaning

  • Loading branch information...
mehlah committed Aug 14, 2011
1 parent 30e4f0f commit c7521649ecdc9bb2409d7924e037c1539686cf49
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/capium.rb
View
@@ -27,6 +27,8 @@ def _cset(name, *args, &block)
_cset(:deploy_to) { "/u/apps/#{application}" }
_cset(:revision) { source.head }
+
+ # Lithium variables
_cset(:lithium_repo) { "git://github.com/UnionOfRAD/lithium.git"}
_cset(:lithium_branch) { "master" }
@@ -154,6 +156,7 @@ def capium()
after("deploy:setup", "lithium:setup")
after("deploy:symlink", "lithium:configure_library_path", "lithium:clear_cache")
end
+
# =========================================================================
# These are the tasks that are available to help with deploying web apps,
# and specifically, Rails applications. You can have cap give you a summary
@@ -465,7 +468,7 @@ def capium()
This directory contain a copy of the Lithium core.
DESC
task :configure_library_path do
- run "sed -i \"s/^define('LITHIUM_LIBRARY_PATH.*$/define('LITHIUM_LIBRARY_PATH', dirname(dirname(LITHIUM_APP_PATH)) . '\\/shared\\/libraries');/\" #{release_path}/config/bootstrap/libraries.php"
+ run "sed -i \"s=^define('LITHIUM_LIBRARY_PATH.*$=define('LITHIUM_LIBRARY_PATH', '#{shared_path}/libraries');=\" #{release_path}/config/bootstrap/libraries.php"
end
desc <<-DESC

0 comments on commit c752164

Please sign in to comment.