capistrano-git-plugins 0.0.13 → 0.0.14

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-git-plugins}
8
- s.version = "0.0.13"
8
+ s.version = "0.0.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Moran"]
@@ -18,7 +18,6 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".idea/capistrano-git-plugins.iml",
22
21
  ".idea/encodings.xml",
23
22
  ".idea/misc.xml",
24
23
  ".idea/modules.xml",
@@ -8,7 +8,7 @@ Capistrano::Configuration.instance(:must_exist).load do
8
8
  rails_env = fetch(:hoptoad_env, fetch(:rails_env, 'production'))
9
9
  local_user = ENV['USER'] || ENV['USERNAME']
10
10
  executable = fetch(:rake, (RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake'))
11
- executable = "cd #{deploy_to} && #{executable}" if executable.include?('bundle exec')
11
+ executable = "cd #{deploy_to} && sudo -u #{sudo_user} #{executable}" if executable.include?('bundle exec')
12
12
  notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REPO=#{repository} USER=#{local_user}"
13
13
  notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
14
14
  puts "\n\n### NOTIFY HOPTOAD: Notifying Hoptoad of Deploy (#{notify_command})\n\n"
@@ -4,10 +4,8 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :resque_workers do
5
5
  desc 'restart resque workers'
6
6
  task :restart, :roles=> :god do
7
- puts "\n\n### STOP RESQUE WORKERS!: Telling god to stop our resque workers.\n\n"
8
- run "sudo #{ruby_bin_dir}/ruby #{ruby_bin_dir}/god stop #{application}-resque; exit 0"
9
- puts "\n\n### START RESQUE WORKERS!: Telling god to start our resque workers.\n\n"
10
- run "sudo #{ruby_bin_dir}/ruby #{ruby_bin_dir}/god start #{application}-resque; exit 0"
7
+ puts "\n\n### RESTART RESQUE WORKERS!: Telling god to restart our resque workers.\n\n"
8
+ run "sudo -u #{sudo_user} #{ruby_bin_dir}/ruby #{ruby_bin_dir}/god restart #{application}-resque; exit 0"
11
9
  end
12
10
  end
13
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-plugins
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran
@@ -45,7 +45,6 @@ extra_rdoc_files:
45
45
  - README.rdoc
46
46
  files:
47
47
  - .document
48
- - .idea/capistrano-git-plugins.iml
49
48
  - .idea/encodings.xml
50
49
  - .idea/misc.xml
51
50
  - .idea/modules.xml
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
9
-