Sha256: 4fcf176b29d56a745a9dc859e420573ea3f2be8dff2c214b6db3eb3f66442f2d

Contents?: true

Size: 465 Bytes

Versions: 17

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Rollo
  module Model
    class Host
      def initialize(instance)
        @instance = instance
      end

      def id
        @instance.id
      end

      def terminate
        @instance.terminate(should_decrement_desired_capacity: false)
      end

      def in_service?
        @instance.lifecycle_state == 'InService'
      end

      def healthy?
        @instance.health_status == 'Healthy'
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rollo-0.9.0.pre.7 lib/rollo/model/host.rb
rollo-0.9.0.pre.6 lib/rollo/model/host.rb
rollo-0.9.0.pre.5 lib/rollo/model/host.rb
rollo-0.9.0.pre.4 lib/rollo/model/host.rb
rollo-0.9.0.pre.3 lib/rollo/model/host.rb
rollo-0.9.0.pre.2 lib/rollo/model/host.rb
rollo-0.9.0.pre.1 lib/rollo/model/host.rb
rollo-0.8.0 lib/rollo/model/host.rb
rollo-0.8.0.pre.9 lib/rollo/model/host.rb
rollo-0.8.0.pre.8 lib/rollo/model/host.rb
rollo-0.8.0.pre.7 lib/rollo/model/host.rb
rollo-0.8.0.pre.6 lib/rollo/model/host.rb
rollo-0.8.0.pre.5 lib/rollo/model/host.rb
rollo-0.8.0.pre.4 lib/rollo/model/host.rb
rollo-0.8.0.pre.3 lib/rollo/model/host.rb
rollo-0.8.0.pre.2 lib/rollo/model/host.rb
rollo-0.8.0.pre.1 lib/rollo/model/host.rb