dyntool 0.0.13 → 0.0.14
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/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."
|