dogids-cli 0.0.32 → 0.0.33
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 +4 -4
- data/lib/dogids/deploy/web.rb +8 -8
- data/lib/dogids/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba26c19795047064e040c7e785830fbccc756a6
|
4
|
+
data.tar.gz: 82b32455f765b7ee727a75f8767fc5ec3a3dcdac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb9ac6ace6bece8abd77b9143c761d3336471d29549b2ee55e26a4d16fa97e0300198a063ae42f7fe0b822fc5bf9a50aa13315f80cd224802276cc30fc67aa3
|
7
|
+
data.tar.gz: 33c0553bd6f92715fe8513353005644d90d872046791143019771b671db8e8769b85d147ba42fe52ccde4f8978761b53433c62cd773615e2940ee59fad3e9318
|
data/lib/dogids/deploy/web.rb
CHANGED
@@ -10,7 +10,7 @@ module Dogids
|
|
10
10
|
# Get each production server matching "web" for deploy
|
11
11
|
server_addresses = []
|
12
12
|
production_servers = get_config_url("production")
|
13
|
-
production_servers.map |key, ip_address|
|
13
|
+
production_servers.map do |key, ip_address|
|
14
14
|
if key.include? "web"
|
15
15
|
server_addresses << key
|
16
16
|
end
|
@@ -38,13 +38,13 @@ module Dogids
|
|
38
38
|
ssh.exec!(web_update_permissions_command) do |_channel, _stream, data|
|
39
39
|
print_command(data)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
git_sha = "Unknown"
|
43
43
|
ssh.exec!(web_git_get_sha) do |_channel, _stream, data|
|
44
44
|
git_sha = data.strip
|
45
45
|
end
|
46
46
|
print_command("Current git SHA: #{git_sha}")
|
47
|
-
|
47
|
+
|
48
48
|
print_command("Sending release to sentry")
|
49
49
|
ssh.exec!(web_sentry_create_release(git_sha)) do |_channel, _stream, data|
|
50
50
|
print_command(data)
|
@@ -89,7 +89,7 @@ module Dogids
|
|
89
89
|
commands << "git pull origin master"
|
90
90
|
commands.join("&& ")
|
91
91
|
end
|
92
|
-
|
92
|
+
|
93
93
|
def web_git_get_sha
|
94
94
|
commands = []
|
95
95
|
commands << "cd /home/dogids/apps/dogids.com"
|
@@ -127,7 +127,7 @@ module Dogids
|
|
127
127
|
|
128
128
|
commands.join("&& ")
|
129
129
|
end
|
130
|
-
|
130
|
+
|
131
131
|
### SENTRY COMMANDS ###
|
132
132
|
def web_sentry_create_release(git_sha)
|
133
133
|
commands = []
|
@@ -135,21 +135,21 @@ module Dogids
|
|
135
135
|
commands << "sentry-cli releases new #{git_sha}"
|
136
136
|
commands.join(" && ")
|
137
137
|
end
|
138
|
-
|
138
|
+
|
139
139
|
def web_sentry_set_commits(git_sha)
|
140
140
|
commands = []
|
141
141
|
commands << "cd /home/dogids/apps/dogids.com"
|
142
142
|
commands << "sentry-cli releases set-commits #{git_sha} --auto"
|
143
143
|
commands.join(" && ")
|
144
144
|
end
|
145
|
-
|
145
|
+
|
146
146
|
def web_sentry_finalize(git_sha)
|
147
147
|
commands = []
|
148
148
|
commands << "cd /home/dogids/apps/dogids.com"
|
149
149
|
commands << "sentry-cli releases finalize #{git_sha}"
|
150
150
|
commands.join(" && ")
|
151
151
|
end
|
152
|
-
|
152
|
+
|
153
153
|
def web_sentry_deploy(git_sha)
|
154
154
|
commands = []
|
155
155
|
commands << "cd /home/dogids/apps/dogids.com"
|
data/lib/dogids/version.rb
CHANGED