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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1624d5ee8c4a1d5741d50e4a4bc478fc5b9cd403
4
- data.tar.gz: c15668a708cd2e986911de00f05c05f7efeaedb1
3
+ metadata.gz: 0b15ee4713f41f06b6adcc2680e500e2d50aa163
4
+ data.tar.gz: 3156f2070432d23a1316106b9ec16f6bd8843e48
5
5
  SHA512:
6
- metadata.gz: 95b19a53dae2bea265c1fa49aae7445bd59bd83d5998f8af0795135e47fd6487924321be85a7558fa1f979b909d181b108cf6e6ab8d83df51d2ead233ec1c35c
7
- data.tar.gz: d6fdae9e84c5679edaabb3413b2372d5f2a353437e06903a477a3d0434445e4904f4d728902142598078d3c3f2ea520ff23ed057367a1dfecd16977402440e97
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__)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Sumo
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -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.0.0
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