Sha256: baec6dbeb88feb9c666a7a2546e19f09126adaab211d3a900595ede1fbbf3a0a

Contents?: true

Size: 354 Bytes

Versions: 8

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module Capistrano
  module ASG
    module Rolling
      # AWS EC2 EBS snapshot.
      class Snapshot
        include AWS

        attr_reader :id

        def initialize(id)
          @id = id
        end

        def delete
          aws_ec2_client.delete_snapshot(snapshot_id: id)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
capistrano-asg-rolling-0.5.1 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.5.0 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.4.1 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.4.0 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.3.0 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.2.1 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.2.0 lib/capistrano/asg/rolling/snapshot.rb
capistrano-asg-rolling-0.1.0 lib/capistrano/asg/rolling/snapshot.rb