bin/gitdis in gitdis-0.0.2.1 vs bin/gitdis in gitdis-0.1.0.1

- old
+ new

@@ -68,22 +68,24 @@ # process keymap if opts.dump? GitDis.dump(keymap.keys, redis_options) else - gd = GitDis.new config.fetch('git-repo') + gd = GitDis.new(config.fetch('git-repo'), redis_options) gd.git_pull config.fetch('git-branch') keymap.each { |key, fileglob| result = gd.update(key, fileglob) case result when nil puts "#{fileglob} not found" when false puts "#{fileglob} unchanged" else - ver, md5 = *result - puts "#{fileglob} updated:" - puts "\tVersion: #{ver} (#{md5})" + unless opts.dry_run? + ver, md5 = *result + puts "#{fileglob} updated:" + puts "\tVersion: #{ver} (#{md5})" + end end } end