Sha256: de94c9865fcf311880d60bd4d3775d87b38280d029605faabac787e8d9d6f8fd

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

# frozen_string_literal: true

module Capistrano
  module ASG
    module Rolling
      # Base class for exceptions.
      class Exception < StandardError
      end

      class NoAutoScalingGroup < Capistrano::ASG::Rolling::Exception
      end

      class NoLaunchTemplate < Capistrano::ASG::Rolling::Exception
      end

      class InstanceRefreshFailed < Capistrano::ASG::Rolling::Exception
      end

      # Exception when instance terminate fails.
      class InstanceTerminateFailed < Capistrano::ASG::Rolling::Exception
        attr_reader :instance

        def initialize(instance, exception)
          @instance = instance
          super(exception)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-asg-rolling-0.4.1 lib/capistrano/asg/rolling/exception.rb
capistrano-asg-rolling-0.4.0 lib/capistrano/asg/rolling/exception.rb