pushdeploy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pushdeploy_install_hook +3 -3
- data/lib/pushdeploy/version.rb +1 -1
- metadata +1 -1
data/bin/pushdeploy_install_hook
CHANGED
@@ -18,13 +18,13 @@
|
|
18
18
|
# which lauches bundler, migrate and other commands that you specified.
|
19
19
|
#
|
20
20
|
|
21
|
-
repository
|
21
|
+
repository = `git config --get remote.origin.url`.chomp
|
22
22
|
|
23
23
|
rvm_path = ENV['rvm_path']
|
24
|
-
rvm_string = rvm_path.nil? ? nil : `rvm current
|
24
|
+
rvm_string = rvm_path.nil? ? nil : `rvm current`.chomp
|
25
25
|
current_path = `pwd`.chop
|
26
26
|
|
27
|
-
if !
|
27
|
+
if !File.directory?(repository) || ARGV[0] == '-m'
|
28
28
|
|
29
29
|
if ! File.directory?(repository)
|
30
30
|
puts "\n\e[00;31m*** Can't locate your git repository. ***\e[00m"
|
data/lib/pushdeploy/version.rb
CHANGED