bin/gitdis in gitdis-0.0.1.1 vs bin/gitdis in gitdis-0.0.2.1

- old
+ new

@@ -5,11 +5,11 @@ require 'gitdis' opts = Slop.parse { |o| o.banner = "USAGE: gitdis path/to/config.yaml [options]" o.separator ' Environment selection' - o.string '-e', '--environment', 'select within YAML[environments]' + o.string '-e', '--environment', 'toplevel YAML key' o.separator ' Redis overrides' o.string '-H', '--redis-host', 'string' o.integer '-p', '--redis-port', 'number' o.integer '-d', '--redis-db', 'number' o.separator ' Git repo overrides' @@ -64,15 +64,16 @@ end puts [item, config[item]].join(': ') if config[item] } puts "Redis options: #{redis_options}" -# do things'n'stuff +# process keymap if opts.dump? GitDis.dump(keymap.keys, redis_options) else gd = GitDis.new config.fetch('git-repo') gd.git_pull config.fetch('git-branch') + keymap.each { |key, fileglob| result = gd.update(key, fileglob) case result when nil puts "#{fileglob} not found"