Sha256: f28297d9bb5280b883ef374ea8b32af3197f6e96706484793b7331c68ab857d3

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

module Astrails
  module Safe
    class Page < Pipe

      protected

      def post_process
        @backup.compressed = true
      end

      def pipe
        #puts "Hi from Cut pipe"
        #puts "CUT CONFIG #{@config.parent.inspect}"
        #puts "PIPE: #{@backup.inspect}"
        "|gzip|split -d -b #{page_size} - #{@backup.filename}#{@backup.extension}."
      end

      def extension
        ""
      end

      def active?
        page_size 
      end

      private

      def page_size
        @page_size ||= @config[:page, :page_size]
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
darkofabijan-astrails-safe-0.2.9 lib/astrails/safe/page.rb