dyntool 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dyntool.rb +5 -1
  2. 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."
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 13
9
- version: 0.0.13
8
+ - 14
9
+ version: 0.0.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ariel Moskovich