Sha256: 63f1d5811ab3d60ff08f308b2b0a57535752e4ffde048f006f0ccd13ccd1bf77

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

require "swa/resource"
require "swa/ec2/tagged_resource"

module Swa
  module EC2

    class Snapshot < Resource

      include TaggedResource

      def summary
        [
          field(s, :snapshot_id),
          field(s, :volume_id),
          sprintf("%5d", s.volume_size),
          s.start_time.iso8601,
          rpad(s.progress, 4),
          quoted(s.description)
        ].join("  ")
      end

      delegate :delete

      private

      alias_method :s, :aws_resource

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
swa-0.6.0 lib/swa/ec2/snapshot.rb
swa-0.5.2 lib/swa/ec2/snapshot.rb
swa-0.5.1 lib/swa/ec2/snapshot.rb
swa-0.5.0 lib/swa/ec2/snapshot.rb
swa-0.4.4 lib/swa/ec2/snapshot.rb