dogids-cli 0.0.32 → 0.0.33

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: bc13967c5fd729a5e29aedbbd905c4304cc1aff7
4
- data.tar.gz: beb414914b04fa5a9a8f9f2ec5323bdcc740b135
3
+ metadata.gz: 0ba26c19795047064e040c7e785830fbccc756a6
4
+ data.tar.gz: 82b32455f765b7ee727a75f8767fc5ec3a3dcdac
5
5
  SHA512:
6
- metadata.gz: 7528a07711d38ad0cdd7dfab012f3e5c851717811080ace7283aa6f96647b8b455a0c9dd771f5e0ed63d4b366a1ed88645aebb6d6a50757d109f3c22bc1d266b
7
- data.tar.gz: e46975943d1bca00da3b055a14eb8e84d9e91cbcd1bc7e5a49222a3833ab1dca3dc1ea773530aee3d08a57bf3a8a82f0bae119856695b6072a767cf0355fa78b
6
+ metadata.gz: dbb9ac6ace6bece8abd77b9143c761d3336471d29549b2ee55e26a4d16fa97e0300198a063ae42f7fe0b822fc5bf9a50aa13315f80cd224802276cc30fc67aa3
7
+ data.tar.gz: 33c0553bd6f92715fe8513353005644d90d872046791143019771b671db8e8769b85d147ba42fe52ccde4f8978761b53433c62cd773615e2940ee59fad3e9318
@@ -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"
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Dogids
6
- VERSION = "0.0.32"
6
+ VERSION = "0.0.33"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update dogids-cli to latest version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogids-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaryd Krishnan