Sha256: 9551c4696b5d84e5f0c3bdca4b359ea937231e8775df1af58a62801a9ed93d53
Contents?: true
Size: 375 Bytes
Versions: 14
Compression:
Stored size: 375 Bytes
Contents
module Astrails module Safe class Stream attr_accessor :config, :backup def initialize(config, backup) @config, @backup = config, backup end def expand(path) path . gsub(/:kind\b/, @backup.kind.to_s) . gsub(/:id\b/, @backup.id.to_s) . gsub(/:timestamp\b/, @backup.timestamp) end end end end
Version data entries
14 entries across 14 versions & 3 rubygems