westarete-capistrano-helpers 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.1.0
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{capistrano-helpers}
5
- s.version = "0.0.2"
5
+ s.version = "0.1.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Scott Woods"]
9
- s.date = %q{2009-07-30}
9
+ s.date = %q{2009-08-15}
10
10
  s.description = %q{A set of optional extensions to capistrano to make common tasks easier.}
11
11
  s.email = %q{scott@westarete.com}
12
12
  s.extra_rdoc_files = [
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/capistrano-helpers/php.rb",
30
30
  "lib/capistrano-helpers/preflight.rb",
31
31
  "lib/capistrano-helpers/privates.rb",
32
+ "lib/capistrano-helpers/shared.rb",
32
33
  "lib/capistrano-helpers/specs.rb",
33
34
  "lib/capistrano-helpers/version.rb",
34
35
  "test/capistrano-helpers_test.rb",
@@ -1,3 +1,5 @@
1
+ require 'capistrano'
2
+
1
3
  unless Capistrano::Configuration.respond_to?(:instance)
2
4
  abort "capistrano-helpers requires Capistrano 2"
3
5
  end
@@ -0,0 +1,19 @@
1
+ require File.dirname(__FILE__) + '/../capistrano-helpers' if ! defined?(CapistranoHelpers)
2
+
3
+ CapistranoHelpers.with_configuration do
4
+
5
+ namespace :deploy do
6
+ desc 'Replace named files with a symlink to their counterparts in shared/'
7
+ task :symlink_shared do
8
+ if !exists?(:shared)
9
+ abort 'You must specify which files to symlink using the "set :shared" command.'
10
+ end
11
+ shared.each do |path|
12
+ run "ln -nfs #{shared_path}/#{path} #{release_path}/#{path}"
13
+ end
14
+ end
15
+ end
16
+
17
+ after "deploy:update_code", "deploy:symlink_shared"
18
+
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: westarete-capistrano-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Woods
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-30 00:00:00 -07:00
12
+ date: 2009-08-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -47,6 +47,7 @@ files:
47
47
  - lib/capistrano-helpers/php.rb
48
48
  - lib/capistrano-helpers/preflight.rb
49
49
  - lib/capistrano-helpers/privates.rb
50
+ - lib/capistrano-helpers/shared.rb
50
51
  - lib/capistrano-helpers/specs.rb
51
52
  - lib/capistrano-helpers/version.rb
52
53
  - test/capistrano-helpers_test.rb