Sha256: e0b4332d368c58547e39d66439d08187d2df52b39895865ccb4a2eec132f09ed

Contents?: true

Size: 405 Bytes

Versions: 7

Compression:

Stored size: 405 Bytes

Contents

module Astrails
  module Safe
    class Stream

      attr_accessor :config, :backup
      def initialize(config, backup)
        @config, @backup = config, backup
      end

      # FIXME: move to Backup
      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

7 entries across 7 versions & 3 rubygems

Version Path
astrails-safe-0.3.1 lib/astrails/safe/stream.rb
astrails-safe-0.3.0 lib/astrails/safe/stream.rb
netguru-safe-0.2.11 lib/astrails/safe/stream.rb
netguru-safe-0.2.10 lib/astrails/safe/stream.rb
netguru-safe-0.2.9 lib/astrails/safe/stream.rb
darkofabijan-astrails-safe-0.2.9 lib/astrails/safe/stream.rb
darkofabijan-astrails-safe-0.2.8 lib/astrails/safe/stream.rb