capistrano-shared-file 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -2
- data/lib/capistrano/shared_file/tasks.rb +1 -1
- data/lib/capistrano/shared_file/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae6818f152a7cd866f7f83a61c1bcab73e34146f
|
4
|
+
data.tar.gz: 101df52331a4d973b2ca6f251f349a74c9413df2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29bee61fabc330137611a53da11e4ca15e532fc0fe67dcb563c0fa37a00de9dba6fa6ccb3f58837c4fc9f1758e36e0dc0a5823640712bc80aad48cf6a04aacc
|
7
|
+
data.tar.gz: 254d231b4f3dbf6376deace92eb0971ee802cf1c33eafb1521b7e18d78e7c5206ff1ee3993ba0f1596f9678689bdf4d3c8b42d223846a05dc6fb1afcc58880fc
|
data/README.md
CHANGED
@@ -18,13 +18,25 @@ Add the following lines to `config/deploy.rb`:
|
|
18
18
|
|
19
19
|
## Tasks
|
20
20
|
|
21
|
-
|
21
|
+
### Upload
|
22
|
+
|
23
|
+
To upload all the files defined in the `shared_files` capistrano variable to a remote server, you can execute:
|
22
24
|
|
23
25
|
bundle exec cap shared_file:upload
|
24
26
|
|
25
|
-
|
27
|
+
### Download
|
28
|
+
|
29
|
+
To download all the files defined in the `shared_files` capistrano variable from a remote server, you can execute:
|
26
30
|
|
27
31
|
bundle exec cap shared_file:download
|
32
|
+
|
33
|
+
### Symlink
|
34
|
+
|
35
|
+
To symlink the uploaded configuration files to the current release path, you can execute:
|
36
|
+
|
37
|
+
bundle exec cap shared_file:symlink
|
38
|
+
|
39
|
+
This task will be executed on every deploy. If you happen to make any changes in the files specified in the `shared_files` capistrano variable, make sure you upload them.
|
28
40
|
|
29
41
|
**Note**: You can use it together with `capistrano/ext/multistage` like:
|
30
42
|
|
@@ -22,7 +22,7 @@ Capistrano::Configuration.instance.load do
|
|
22
22
|
run "#{try_sudo} chmod g+w #{remote_path_to(File.dirname(file))}" if fetch(:group_writable, true)
|
23
23
|
end
|
24
24
|
end
|
25
|
-
after 'deploy:setup', 'shared_file:setup
|
25
|
+
after 'deploy:setup', 'shared_file:setup'
|
26
26
|
|
27
27
|
desc 'Upload shared files to server'
|
28
28
|
task :upload, :except => { :no_release => true } do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-shared-file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Salmeron Amselem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|