Sha256: e7d7176bf3594cdb1529374dd235a9c078d04702c9e42eec62a5d042bcbc7029
Contents?: true
Size: 443 Bytes
Versions: 3
Compression:
Stored size: 443 Bytes
Contents
# https://github.com/zold-io/zold/issues/358 # rename all wallets from their current names into *.z module Zold # Upgrade to version 2 class UpgradeTo2 def initialize(home, log) @home = home @log = log end def exec Dir.new(@home).each do |path| next unless path =~ /^[a-f0-9]{16}$/ File.rename(path, "#{path}.z") @log.info("Renamed #{path} to #{path}.z") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zold-0.14.2 | upgrades/2.rb |
zold-0.14.1 | upgrades/2.rb |
zold-0.14.0 | upgrades/2.rb |