Sha256: b570731da8c172ac8aa8a0f80f1229b300d0774462c55d4ae5de1341a70671fe
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
#!/usr/bin/env ruby # # convert the old data model for the gaptool server # to the new struct libpath = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")) $:.unshift(libpath) require "#{libpath}/helpers/redis" require "#{libpath}/helpers/data" DH = Gaptool::Data $redis.keys("role:*").each do |k| next if k.end_with?('instances') || k.end_with?('apps') || k.end_with?('amis') puts "Migrating #{k}" sgroup = $redis.hget(k, "security_group") $redis.hset("#{k}:sg", "production", sgroup) $redis.del(k) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gaptool-server-0.6.6 | bin/gaptool_migrate_security_groups |