dyntool 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dyntool.rb +5 -1
- metadata +2 -2
data/lib/dyntool.rb
CHANGED
@@ -58,7 +58,11 @@ class Utils
|
|
58
58
|
return(@creds)
|
59
59
|
end
|
60
60
|
# check if dyn.yaml configuration is same as commited in svn
|
61
|
-
def SvnChk()
|
61
|
+
def SvnChk(uid)
|
62
|
+
@rep_uid = `svn info | grep "Repository UUID" | awk '{ print $3 }'`
|
63
|
+
if @rep_uid.chomp != "#{uid}"
|
64
|
+
abort("You are not in a directory that checkout to authorized SVN")
|
65
|
+
end
|
62
66
|
@svn_chk=`svn stat dyn.yml`
|
63
67
|
if @svn_chk != ""
|
64
68
|
puts "Your dyn.yaml is not identical to the dyn.yml in the svn, or does not exist."
|