capistrano-sumo 1.2.0 → 1.4.2
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.
- checksums.yaml +5 -5
- data/.gitignore +0 -1
- data/Gemfile.lock +28 -0
- data/capistrano-sumo.gemspec +2 -2
- data/lib/capistrano/sumo/defaults.rb +6 -2
- data/lib/capistrano/sumo/version.rb +1 -1
- data/lib/capistrano/tasks/notifications.rake +7 -2
- data/lib/capistrano/tasks/redirect.rake +3 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 71506ab24af5e01d01759890efb811b20354d763c8554f16da6fe9075196e2ad
|
4
|
+
data.tar.gz: e2850afaaee08e0650713dbd22c2d9b67a6ee68ddb4cc8c14e8b102285752fda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d99c8ca7f8e64e7efecb90c4b193277d198cb13960fcc241e6a448bbead6f6f982adea02e8bfd392749907be3f04fd5961314e518d8eb207117c1947456cfd24
|
7
|
+
data.tar.gz: 5993153b03c57859f782e1cd94f66d7021f8c5b817fccfdb1f4356cff8cc93652eba3febdfe6254cf0f2c1890256524c26da9f41f38f2eac2a7645bee814bf9e
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.4.4)
|
5
|
+
rake (12.3.3)
|
6
|
+
rspec (3.10.0)
|
7
|
+
rspec-core (~> 3.10.0)
|
8
|
+
rspec-expectations (~> 3.10.0)
|
9
|
+
rspec-mocks (~> 3.10.0)
|
10
|
+
rspec-core (3.10.1)
|
11
|
+
rspec-support (~> 3.10.0)
|
12
|
+
rspec-expectations (3.10.1)
|
13
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
14
|
+
rspec-support (~> 3.10.0)
|
15
|
+
rspec-mocks (3.10.2)
|
16
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
17
|
+
rspec-support (~> 3.10.0)
|
18
|
+
rspec-support (3.10.2)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
rake (~> 12.0)
|
25
|
+
rspec (~> 3.0)
|
26
|
+
|
27
|
+
BUNDLED WITH
|
28
|
+
2.2.15
|
data/capistrano-sumo.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
end
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
22
|
+
spec.add_development_dependency 'bundler', '~> 2.1.0'
|
23
23
|
spec.add_development_dependency 'rake', '~> 12.0'
|
24
24
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
25
|
-
end
|
25
|
+
end
|
@@ -1,6 +1,10 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
namespace :deploy do
|
2
|
-
|
3
|
-
|
4
|
+
package = JSON.parse(File.read('composer.json'))
|
5
|
+
|
6
|
+
# compile and upload the assets, but only if it's a Fork CMS project
|
7
|
+
after :updated, 'sumo:assets:put' if package['name'] == 'forkcms/forkcms'
|
4
8
|
|
5
9
|
# notify our bot about the deploy
|
6
10
|
after :finished, 'sumo:notifications:deploy'
|
@@ -2,15 +2,20 @@ namespace :sumo do
|
|
2
2
|
namespace :notifications do
|
3
3
|
desc 'Notify our webhooks on a deploy'
|
4
4
|
task :deploy do
|
5
|
+
# fetch the revision from the web-server
|
5
6
|
on roles(:web) do
|
7
|
+
set :revision, capture("cat #{current_path}/REVISION")
|
8
|
+
end
|
9
|
+
|
10
|
+
run_locally do
|
6
11
|
execute :curl,
|
7
12
|
'-sS',
|
8
13
|
"--data local_username=#{ENV["USER"]}",
|
9
14
|
"--data stage=#{fetch(:stage)}",
|
10
15
|
"--data repo=#{fetch(:repo_url)}",
|
11
|
-
"--data revision=#{
|
16
|
+
"--data revision=#{fetch(:revision)}",
|
12
17
|
'http://bot.sumo.sumoapp.be:3001/deploy/hook'
|
13
18
|
end
|
14
19
|
end
|
15
20
|
end
|
16
|
-
end
|
21
|
+
end
|
@@ -4,12 +4,12 @@ namespace :sumo do
|
|
4
4
|
task :enable do
|
5
5
|
on roles(:web) do
|
6
6
|
execute :mkdir, '-p', "#{shared_path}/redirect"
|
7
|
-
execute :wget, '-qO', "#{shared_path}/redirect/index.php http://static.sumocoders.be/
|
8
|
-
execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.sumocoders.be/
|
7
|
+
execute :wget, '-qO', "#{shared_path}/redirect/index.php http://static.sumocoders.be/redirect2/index.phps"
|
8
|
+
execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.sumocoders.be/redirect2/htaccess"
|
9
9
|
execute :sed, '-i', "'s|<real-url>|#{fetch :production_url}|' #{shared_path}/redirect/index.php"
|
10
10
|
execute :rm, '-f', "#{fetch :deploy_to}/current"
|
11
11
|
execute :ln, '-s', "#{shared_path}/redirect #{fetch :deploy_to}/current"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
15
|
-
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-sumo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tijs Verkoyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- ".rspec"
|
64
64
|
- ".travis.yml"
|
65
65
|
- Gemfile
|
66
|
+
- Gemfile.lock
|
66
67
|
- LICENSE.md
|
67
68
|
- README.md
|
68
69
|
- Rakefile
|
@@ -79,7 +80,7 @@ homepage: https://github.com/tijsverkoyen/capistrano-sumo
|
|
79
80
|
licenses:
|
80
81
|
- MIT
|
81
82
|
metadata: {}
|
82
|
-
post_install_message:
|
83
|
+
post_install_message:
|
83
84
|
rdoc_options: []
|
84
85
|
require_paths:
|
85
86
|
- lib
|
@@ -94,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
95
|
- !ruby/object:Gem::Version
|
95
96
|
version: '0'
|
96
97
|
requirements: []
|
97
|
-
|
98
|
-
|
99
|
-
signing_key:
|
98
|
+
rubygems_version: 3.0.8
|
99
|
+
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: SumoCoders specific task for Capistrano 3.x.
|
102
102
|
test_files: []
|