Sha256: add8d03db8feccf4db067478677021df90c9c31c9019951454015bc023e86913

Contents?: true

Size: 422 Bytes

Versions: 7

Compression:

Stored size: 422 Bytes

Contents

module DeltaCloud
  module InstanceState

    class State
      attr_reader :name
      attr_reader :transitions

      def initialize(name)
        @name, @transitions = name, []
      end
    end

    class Transition
      attr_reader :to
      attr_reader :action

      def initialize(to, action)
        @to = to
        @action = action
      end

      def auto?
        @action.nil?
      end
    end

  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
steamcannon-deltacloud-client-0.1.1.1 lib/instance_state.rb
deltacloud-client-0.1.1 lib/instance_state.rb
steamcannon-deltacloud-client-0.1.0.5 lib/instance_state.rb
steamcannon-deltacloud-client-0.1.0.4 lib/instance_state.rb
steamcannon-deltacloud-client-0.1.0.3 lib/instance_state.rb
steamcannon-deltacloud-client-0.1.0.2 lib/instance_state.rb
deltacloud-client-0.1.0 lib/instance_state.rb