dogids-cli 0.0.8 → 0.0.9
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/staging.rb +3 -0
- data/lib/dogids/deploy/web.rb +3 -0
- data/lib/dogids/deploy/worker.rb +7 -8
- data/lib/dogids/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d592340a1285019dca9de5e0df72d14f453ca509
|
4
|
+
data.tar.gz: fba72ac83b3f572b9b37f523d35ca12c1307d6c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 005b71a01ce3c05fc6fef3a3cb1acdd203f6ce7792375d20afb06e3e92d9c46bd522e8778ffa40b9c98620ee6af2aa7c16bce40c68453ebc78274c85ed796967
|
7
|
+
data.tar.gz: 22228fa84f6398d39468277236b91dca273acb883816ea2fdd0df60320577bc44fe7dad1f58a650697845ad42944fe6ea01cea0b980fb99e6de9859197a1af37
|
@@ -47,6 +47,9 @@ module Dogids
|
|
47
47
|
def staging_git_pull_command(branch)
|
48
48
|
commands = []
|
49
49
|
commands << "cd /home/dogids/apps/dogids.com"
|
50
|
+
commands << "sudo chown dogids:www-data -R blog/wp-content"
|
51
|
+
commands << "sudo chown dogids:www-data -R resources"
|
52
|
+
commands << "sudo chown dogids:www-data -R templates"
|
50
53
|
commands << "git fetch origin #{branch}"
|
51
54
|
commands << "git checkout #{branch}"
|
52
55
|
commands << "git pull origin #{branch}"
|
data/lib/dogids/deploy/web.rb
CHANGED
@@ -35,6 +35,9 @@ module Dogids
|
|
35
35
|
def web_git_pull_command
|
36
36
|
commands = []
|
37
37
|
commands << "cd /home/dogids/apps/dogids.com"
|
38
|
+
commands << "sudo chown dogids:www-data -R blog/wp-content"
|
39
|
+
commands << "sudo chown dogids:www-data -R resources"
|
40
|
+
commands << "sudo chown dogids:www-data -R templates"
|
38
41
|
commands << "git pull origin master"
|
39
42
|
commands.join("&& ")
|
40
43
|
end
|
data/lib/dogids/deploy/worker.rb
CHANGED
@@ -20,7 +20,13 @@ module Dogids
|
|
20
20
|
|
21
21
|
print_heading("Restarting")
|
22
22
|
%w(clock web worker).each do |process|
|
23
|
-
|
23
|
+
# First stop each process
|
24
|
+
command = "sudo stop dogids-#{process}"
|
25
|
+
ssh.exec!(command) do |_channel, _stream, data|
|
26
|
+
print_command(data)
|
27
|
+
end
|
28
|
+
# Then start each process (restart doesn't work if not running)
|
29
|
+
command = "sudo start dogids-#{process}"
|
24
30
|
ssh.exec!(command) do |_channel, _stream, data|
|
25
31
|
print_command(data)
|
26
32
|
end
|
@@ -46,12 +52,5 @@ module Dogids
|
|
46
52
|
commands << "git pull origin master"
|
47
53
|
commands.join("&& ")
|
48
54
|
end
|
49
|
-
|
50
|
-
def worker_bundle_install_command
|
51
|
-
commands = []
|
52
|
-
commands << "cd /home/dogids/apps/dogids-backgrounder"
|
53
|
-
commands << "/home/dogids/ruby/bin/bundle install --deployment --without development test"
|
54
|
-
commands.join("&& ")
|
55
|
-
end
|
56
55
|
end
|
57
56
|
end
|
data/lib/dogids/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dogids-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|