sumodev_deploy 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev_deploy/tasks/cache.rb +9 -0
- data/lib/sumodev_deploy/tasks/errbit.rb +0 -17
- data/lib/sumodev_deploy.rb +2 -0
- data/sumodev_deploy.gemspec +5 -5
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe916a075ac71289f8a53aff970d6aeb0a376b7d53fea8db02eefe0a4cf59f4
|
4
|
+
data.tar.gz: 504608992e8b49dddb967f9ab3a8bb7a906ea0b3f1ec8287937c79331985d22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae00efe8378ea0040f917fea221877caae844a90879e3423495e737a3f0d2ac855999675b1998b0293084c27b4be7017870b19228a572b572aebfc2fe31692a5
|
7
|
+
data.tar.gz: d3de7548a585954573e6e25a456df315320a0687860a0bc439504d1dc7cda6cace1e9c7be4a712026de99edcb5736342cecc89685b2ddce593b590dc1353b7f2
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
namespace :cache do
|
3
|
+
desc "touch the parameters.yml file"
|
4
|
+
task :touch_parameters do
|
5
|
+
run "if [ -f #{shared_path}/config/library/globals.php ]; then touch #{shared_path}/config/library/globals.php; fi"
|
6
|
+
run "if [ -f #{shared_path}/config/parameters.yml ]; then touch #{shared_path}/config/parameters.yml; fi"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
@@ -3,7 +3,6 @@ Capistrano::Configuration.instance.load do
|
|
3
3
|
namespace :errbit do
|
4
4
|
task :after_deploy, :rolse => :app do
|
5
5
|
update_api_key
|
6
|
-
notify
|
7
6
|
end
|
8
7
|
desc "Updates the Errbit API key"
|
9
8
|
task :update_api_key, :roles => :app do
|
@@ -11,22 +10,6 @@ Capistrano::Configuration.instance.load do
|
|
11
10
|
run "if [ -f #{shared_path}/config/library/globals.php ]; then sed -i \"s/define('ERRBIT_API_KEY', '.*');/define('ERRBIT_API_KEY', '#{production_errbit_api_key}');/\" #{shared_path}/config/library/globals.php; fi"
|
12
11
|
run "if [ -f #{shared_path}/config/parameters.yml ]; then sed -i \"s/sumo.errbit_api_key:.*/sumo.errbit_api_key: #{production_errbit_api_key}/\" #{shared_path}/config/parameters.yml; fi"
|
13
12
|
end
|
14
|
-
desc "Notify Errbit about a dqeploy"
|
15
|
-
task :notify, :roles => :app do
|
16
|
-
next if fetch(:production_errbit_api_key, "").empty?
|
17
|
-
require 'active_support/core_ext/object'
|
18
|
-
|
19
|
-
parameters = {
|
20
|
-
:api_key => production_errbit_api_key,
|
21
|
-
:deploy => {
|
22
|
-
:rails_env => stage,
|
23
|
-
:local_username => ENV["USER"],
|
24
|
-
:scm_repository => repository,
|
25
|
-
:scm_revision => current_revision
|
26
|
-
}
|
27
|
-
}
|
28
|
-
run_locally "curl -d '#{parameters.to_query}' https://errors.sumocoders.be/deploys.txt"
|
29
|
-
end
|
30
13
|
end
|
31
14
|
end
|
32
15
|
end
|
data/lib/sumodev_deploy.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
|
+
require 'sumodev_deploy/tasks/cache'
|
2
3
|
require 'sumodev_deploy/tasks/db'
|
3
4
|
require 'sumodev_deploy/tasks/errbit'
|
4
5
|
require 'sumodev_deploy/tasks/files'
|
@@ -64,6 +65,7 @@ Capistrano::Configuration.instance.load do
|
|
64
65
|
role(:db, :primary => true) { db_server }
|
65
66
|
|
66
67
|
after 'deploy', 'deploy:cleanup', 'sumodev:errbit:after_deploy'
|
68
|
+
after 'forkcms:link_configs', 'cache:touch_parameters'
|
67
69
|
|
68
70
|
namespace :sumodev do
|
69
71
|
namespace :setup do
|
data/sumodev_deploy.gemspec
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "sumodev_deploy"
|
5
|
-
s.version = "0.10.
|
5
|
+
s.version = "0.10.1"
|
6
6
|
|
7
|
-
s.authors = ["
|
8
|
-
s.date = "
|
7
|
+
s.authors = ["Tijs Verkoyen"]
|
8
|
+
s.date = "2020-01-29"
|
9
9
|
s.description = "Deploy to Sumocoders Dev server"
|
10
|
-
s.summary = "
|
10
|
+
s.summary = "..."
|
11
11
|
s.email = "info@sumocoders.be"
|
12
12
|
s.files = [
|
13
13
|
"sumodev_deploy.gemspec",
|
14
14
|
"lib/sumodev_deploy.rb",
|
15
15
|
"lib/sumodev_deploy/tasks/assets.rb",
|
16
16
|
"lib/sumodev_deploy/tasks/browse.rb",
|
17
|
+
"lib/sumodev_deploy/tasks/cache.rb",
|
17
18
|
"lib/sumodev_deploy/tasks/db.rb",
|
18
19
|
"lib/sumodev_deploy/tasks/errbit.rb",
|
19
20
|
"lib/sumodev_deploy/tasks/files.rb",
|
@@ -26,4 +27,3 @@ Gem::Specification.new do |s|
|
|
26
27
|
s.add_dependency "activesupport"
|
27
28
|
s.add_dependency "capistrano", "~> 2.15"
|
28
29
|
end
|
29
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tijs Verkoyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- lib/sumodev_deploy.rb
|
48
48
|
- lib/sumodev_deploy/tasks/assets.rb
|
49
49
|
- lib/sumodev_deploy/tasks/browse.rb
|
50
|
+
- lib/sumodev_deploy/tasks/cache.rb
|
50
51
|
- lib/sumodev_deploy/tasks/db.rb
|
51
52
|
- lib/sumodev_deploy/tasks/errbit.rb
|
52
53
|
- lib/sumodev_deploy/tasks/files.rb
|
@@ -71,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
72
|
- !ruby/object:Gem::Version
|
72
73
|
version: '0'
|
73
74
|
requirements: []
|
74
|
-
rubygems_version: 3.0.
|
75
|
+
rubygems_version: 3.0.6
|
75
76
|
signing_key:
|
76
77
|
specification_version: 4
|
77
|
-
summary:
|
78
|
+
summary: "..."
|
78
79
|
test_files: []
|