Compare commits
3 Commits
master
...
local_call
| Author | SHA1 | Date | |
|---|---|---|---|
| 62465d2973 | |||
| 396b2a9972 | |||
| dcca41a841 |
@@ -1,6 +1,21 @@
|
||||
# Ensure deploy tasks are loaded before we run
|
||||
require 'capistrano/deploy'
|
||||
|
||||
module SSHKit
|
||||
class CommandMap
|
||||
def defaults
|
||||
Hash.new do |hash, command|
|
||||
if %w{if test time exec git}.include? command.to_s || !File.executable?('/usr/bin/env')
|
||||
hash[command] = command.to_s
|
||||
else
|
||||
hash[command] = "/usr/bin/env #{command}"
|
||||
#hash[command] = "#{command}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Load extra tasks into the deploy namespace
|
||||
load File.expand_path("../tasks/deploytags.rake", __FILE__)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
namespace :deploy do
|
||||
desc 'prepare git tree so we can tag on successful deployment'
|
||||
before :deploy, :prepare_tree do
|
||||
SSHKit.config.default_env = {}
|
||||
run_locally do
|
||||
if ENV['NO_DEPLOYTAGS'] || fetch(:no_deploytags, false)
|
||||
info "[deploytags] Skipping deploytags"
|
||||
|
||||
Reference in New Issue
Block a user