webficient-capistrano-recipes 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/recipes/symlink.rb +22 -0
  3. metadata +3 -2
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 2
3
2
  :patch: 0
4
3
  :major: 0
4
+ :minor: 3
@@ -0,0 +1,22 @@
1
+ @@cap_config.load do
2
+ namespace :symlink do
3
+
4
+ desc <<-DESC
5
+ Create shared directories
6
+ DESC
7
+ task :create_shared_dirs, :roles => :app do
8
+ symlinks.each { |link| run "mkdir -p #{shared_path}/#{link}" } if symlinks
9
+ end
10
+
11
+ desc <<-DESC
12
+ Create links to shared directories from current deployment's public directory
13
+ DESC
14
+ task :create_links, :roles => :app do
15
+ symlinks.each { |link|
16
+ run "rm -rf #{release_path}/public/#{link}"
17
+ run "ln -nfs #{shared_path}/#{link} #{release_path}/public/#{link}"
18
+ } if symlinks
19
+ end
20
+
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webficient-capistrano-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Misiowiec
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-30 00:00:00 -07:00
12
+ date: 2009-06-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,7 @@ files:
52
52
  - lib/recipes/deploy.rb
53
53
  - lib/recipes/log.rb
54
54
  - lib/recipes/passenger.rb
55
+ - lib/recipes/symlink.rb
55
56
  has_rdoc: true
56
57
  homepage: http://github.com/webficient/capistrano-recipes
57
58
  post_install_message: