capistrano-git-plugins 0.0.14 → 0.0.15
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.
|
|
1
|
+
0.0.15
|
|
@@ -8,8 +8,8 @@ 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} && sudo
|
|
12
|
-
notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REPO=#{repository} USER=#{local_user}"
|
|
11
|
+
executable = "cd #{deploy_to} && sudo #{executable}" if executable.include?('bundle exec')
|
|
12
|
+
notify_command = "#{executable} hoptoad:deploy TO=#{rails_env} REPO=#{repository} USER=#{local_user} RAILS_ENV=production"
|
|
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"
|
|
15
15
|
run "#{notify_command}"
|
|
@@ -4,8 +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### RESTART RESQUE WORKERS!:
|
|
8
|
-
run "sudo
|
|
7
|
+
puts "\n\n### RESTART RESQUE WORKERS!: Killing the resque workers, God will resurrect them.\n\n"
|
|
8
|
+
run "sudo #{deploy_to}/config/god/kill_resque_workers.sh; exit 0"
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
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:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 15
|
|
10
|
+
version: 0.0.15
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ryan Moran
|