capistrano-sumo 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/sumo/defaults.rb +2 -1
- data/lib/capistrano/sumo/version.rb +1 -1
- data/lib/capistrano/tasks/files.rake +21 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b15ee4713f41f06b6adcc2680e500e2d50aa163
|
4
|
+
data.tar.gz: 3156f2070432d23a1316106b9ec16f6bd8843e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d45d9bb7c080b1bce2df4e8a7add1a7437ae63a2ba442c720a911e53ecd65e6cf3c73ea109f80adc11a2dd16b409a913427f923e4fd415f4d8650b819483364
|
7
|
+
data.tar.gz: 4be0ac8b676c734c7dc453728ce5bdc2530d3fb46c3c81f6a37da119b39dcda3d82d28d27dd63d42107e9b1b6fe9c4b6d5fce8b48b54f96a98fbe1c9ff6de709
|
@@ -5,5 +5,6 @@ end
|
|
5
5
|
|
6
6
|
# Load the tasks
|
7
7
|
load File.expand_path('../../tasks/db.rake', __FILE__)
|
8
|
+
load File.expand_path('../../tasks/files.rake', __FILE__)
|
8
9
|
load File.expand_path('../../tasks/notifications.rake', __FILE__)
|
9
|
-
load File.expand_path('../../tasks/redirect.rake', __FILE__)
|
10
|
+
load File.expand_path('../../tasks/redirect.rake', __FILE__)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
namespace :sumo do
|
2
|
+
namespace :files do
|
3
|
+
desc "Uploads the local files to the remote server"
|
4
|
+
task :put do
|
5
|
+
on roles(:web) do
|
6
|
+
fetch(:files_dir).each do |path|
|
7
|
+
upload! path, "#{current_path}/#{File.dirname(path)}", recursive: true
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Downloads the remote files to the local instance"
|
13
|
+
task :get do
|
14
|
+
on roles(:web) do
|
15
|
+
fetch(:files_dir).each do |path|
|
16
|
+
download! "#{current_path}/#{path}", File.dirname(path), recursive: true
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sumo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
@@ -72,6 +72,7 @@ files:
|
|
72
72
|
- lib/capistrano/sumo/defaults.rb
|
73
73
|
- lib/capistrano/sumo/version.rb
|
74
74
|
- lib/capistrano/tasks/db.rake
|
75
|
+
- lib/capistrano/tasks/files.rake
|
75
76
|
- lib/capistrano/tasks/notifications.rake
|
76
77
|
- lib/capistrano/tasks/redirect.rake
|
77
78
|
homepage: https://github.com/tijsverkoyen/capistrano-sumo
|