dogids-cli 0.0.8 → 0.0.9

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: aa07e0fb723b31824d0f81721700bd083d1b6211
4
- data.tar.gz: f673d02dcd01b5ab7ce3a900c41e3dd35692c416
3
+ metadata.gz: d592340a1285019dca9de5e0df72d14f453ca509
4
+ data.tar.gz: fba72ac83b3f572b9b37f523d35ca12c1307d6c8
5
5
  SHA512:
6
- metadata.gz: 12cfade143faf878c3d9c17e0a3008a9def9d5165442c6f29669dfda3e57648fde24323c1b408670300f2b53cf34b224214da536d145170012977ed457ec7b68
7
- data.tar.gz: f0f1178482676df50f887f46f14e5f0d06277b1fc3b669c628e96559de1cc932fa3453082b6ac8f498e0938d0a23cd587e8f9cb246858f7035ab8891d8945773
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}"
@@ -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
@@ -20,7 +20,13 @@ module Dogids
20
20
 
21
21
  print_heading("Restarting")
22
22
  %w(clock web worker).each do |process|
23
- command = "sudo start dogids-#{process} && sudo restart dogids-#{process}"
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
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Dogids
6
- VERSION = "0.0.8"
6
+ VERSION = "0.0.9"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update dogids-cli to latest version"
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.8
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-27 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh