akitaonrails-locarails 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/locarails/base.rb +24 -0
- data/lib/locarails/version.rb +1 -1
- metadata +2 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
module Capistrano
|
2
|
+
module Deploy
|
3
|
+
module Strategy
|
4
|
+
class Base
|
5
|
+
protected
|
6
|
+
# A wrapper for Kernel#system that logs the command being executed.
|
7
|
+
def system(*args)
|
8
|
+
cmd = args.join(' ')
|
9
|
+
if RUBY_PLATFORM =~ /win32/
|
10
|
+
cmd.gsub!('/','\\') # Replace / with \\
|
11
|
+
cmd.gsub!(/^cd /,'cd /D ') # Replace cd with cd /D
|
12
|
+
cmd.gsub!(/&& cd /,'&& cd /D ') # Replace cd with cd /D
|
13
|
+
cmd.gsub!('%%', '/') # Avoid windows command line parameters to be erroneously replaced by backslashes
|
14
|
+
logger.trace "executing locally: #{cmd}"
|
15
|
+
super(cmd)
|
16
|
+
else
|
17
|
+
logger.trace "executing locally: #{cmd}"
|
18
|
+
super
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/locarails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akitaonrails-locarails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Akita
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- bin/locarails
|
55
55
|
- bin/locarails.cmd
|
56
56
|
- lib/locarails
|
57
|
+
- lib/locarails/base.rb
|
57
58
|
- lib/locarails/copy.rb
|
58
59
|
- lib/locarails/fix.rb
|
59
60
|
- lib/locarails/none.rb
|