capistrano-content 0.0.5 → 0.0.6
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/capistrano-content.gemspec +1 -1
- data/lib/capistrano/ext/content.rb +3 -2
- metadata +2 -2
data/capistrano-content.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
14
14
|
gem.name = 'capistrano-content'
|
|
15
15
|
gem.require_paths = ['lib']
|
|
16
|
-
gem.version = '0.0.
|
|
16
|
+
gem.version = '0.0.6'
|
|
17
17
|
|
|
18
18
|
# Runtime dependencies
|
|
19
19
|
gem.add_dependency 'rake'
|
|
@@ -19,7 +19,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
19
19
|
|
|
20
20
|
transaction do
|
|
21
21
|
backup
|
|
22
|
-
write File.read(arguments), tmp_file
|
|
22
|
+
write File.read(arguments.first), tmp_file
|
|
23
23
|
run <<-CMD
|
|
24
24
|
cd #{fetch :shared_content_path} &&
|
|
25
25
|
tar xf #{tmp_file} &&
|
|
@@ -31,7 +31,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
31
31
|
|
|
32
32
|
desc 'Export content'
|
|
33
33
|
task :export, :roles => :app do
|
|
34
|
-
tmp_file = "#{random_tmp_file}
|
|
34
|
+
tmp_file = "#{arguments(false).first || random_tmp_file}"
|
|
35
|
+
tmp_file << '.tar.gz' unless tmp_file =~ /\.tar\.gz$/
|
|
35
36
|
on_rollback { run "rm -f #{fetch :latest_content_backup}" }
|
|
36
37
|
on_rollback { run_locally "rm -f #{tmp_file}" }
|
|
37
38
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-content
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
version: '0'
|
|
94
94
|
segments:
|
|
95
95
|
- 0
|
|
96
|
-
hash: -
|
|
96
|
+
hash: -4309611425994607799
|
|
97
97
|
requirements: []
|
|
98
98
|
rubyforge_project:
|
|
99
99
|
rubygems_version: 1.8.23
|