capistrano-extensions 0.1.4 → 0.1.5

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/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ === v0.1.5 / 2009-02-22
2
+ * Fixed local:restore_content to work better with :content_directories.
3
+
1
4
  === v0.1.4 / 2008-09-12
2
5
  * In local:restore_db, the db import would previously fail if the username was not specified in your database.yml
3
6
  file. I have corrected this and set it to default to 'root' now (as rails does).
data/README.txt CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  This gem provides a base set of Capistrano extensions including the following:
8
8
  * a new :gemfile RemoteDependency type
9
- * tasks/helpers for handling public asset folders (e.g. created by the file_column plugin)
9
+ * tasks/helpers for handling public and private asset folders (e.g. created by the file_column plugin)
10
10
  * tasks/helpers for auto-syncing server gems (via integration with Chad Wooley's GemInstaller gem)
11
11
  * helpers for dealing with multiple deployable environments (e.g. staging, prodtest, production)
12
12
  * tasks for working with remote logfiles
@@ -20,8 +20,8 @@ For a detailed exploration of these features, check out the wiki: http://github.
20
20
 
21
21
  == REQUIREMENTS:
22
22
 
23
- * Capistrano >= 2.4.3
24
- * GemInstaller = 0.4.3
23
+ * Capistrano ~> 2.5.4
24
+ * GemInstaller ~> 0.5.0
25
25
 
26
26
  == INSTALL:
27
27
 
data/Rakefile CHANGED
@@ -26,8 +26,8 @@ Hoe.new(PKG_NAME, PKG_VERSION) do |p|
26
26
  p.summary = p.description # More details later??
27
27
  p.remote_rdoc_dir = PKG_NAME # Release to /PKG_NAME
28
28
  # p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n")
29
- p.extra_deps << ["capistrano", ">= 2.4.3"]
30
- p.extra_deps << ["geminstaller", ">= 0.4.3"]
29
+ p.extra_deps << ["capistrano", "~> 2.5.4"]
30
+ p.extra_deps << ["geminstaller", "~> 0.5.0"]
31
31
  p.need_zip = true
32
32
  p.need_tar = false
33
33
  end
@@ -261,7 +261,7 @@ Capistrano::Configuration.instance(:must_exist).load do
261
261
  run "cd #{shared_path} && tar czf #{shared_path}/content_backup.tar.gz #{folders.join(' ')}"
262
262
 
263
263
  #run "cd #{content_path} && tar czf #{shared_path}/content_backup.tar.gz *"
264
- get "#{shared_path}/content_backup.tar.gz", "#{application}-#{rails_env}-content_backup.tar.gz"
264
+ download("#{shared_path}/content_backup.tar.gz", "#{application}-#{rails_env}-content_backup.tar.gz")
265
265
  run "rm -f #{shared_path}/content_backup.tar.gz"
266
266
  end
267
267
 
@@ -272,11 +272,17 @@ Capistrano::Configuration.instance(:must_exist).load do
272
272
  task :restore_content do
273
273
  from = ENV['FROM'] || rails_env
274
274
 
275
- system "tar xzf #{application}-#{from}-content_backup.tar.gz -C public/"
275
+ system "mkdir -p tmp/content-#{from}"
276
+ system "tar xzf #{application}-#{from}-content_backup.tar.gz -C tmp/content-#{from}"
276
277
  system "rm -f #{application}-#{from}-content_backup.tar.gz"
277
278
 
278
279
  shared_content.each_pair do |remote, local|
279
- system "rm -rf #{local} && mv public/#{remote} #{local}"
280
+ system "rm -rf #{local} && mv tmp/content-#{from}/#{remote} #{local}"
281
+ end
282
+
283
+ content_directories.each do |public_dir|
284
+ system "rm -rf public/#{public_dir}"
285
+ system "mv tmp/content-#{from}/content/#{public_dir} public/"
280
286
  end
281
287
 
282
288
  end
@@ -12,7 +12,7 @@ module CapistranoExtensions
12
12
 
13
13
  MAJOR = 0
14
14
  MINOR = 1
15
- TINY = 4
15
+ TINY = 5
16
16
 
17
17
  STRING = [MAJOR, MINOR, TINY].join(".")
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Trupiano
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-12 00:00:00 -04:00
12
+ date: 2009-02-22 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,9 +18,9 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 2.4.3
23
+ version: 2.5.4
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: geminstaller
@@ -28,9 +28,9 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.3
33
+ version: 0.5.0
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.7.0
43
+ version: 1.8.2
44
44
  version:
45
45
  description: A base set of Capistrano extensions-- aids with the file_column plugin, the GemInstaller gem, multiple deployable environments, logfile helpers, and database/asset synchronization from production to local environment
46
46
  email: jtrupiano@gmail.com
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements: []
89
89
 
90
90
  rubyforge_project: johntrupiano
91
- rubygems_version: 1.2.0
91
+ rubygems_version: 1.3.1
92
92
  signing_key:
93
93
  specification_version: 2
94
94
  summary: A base set of Capistrano extensions-- aids with the file_column plugin, the GemInstaller gem, multiple deployable environments, logfile helpers, and database/asset synchronization from production to local environment