Sha256: 9c527482f02772eb6dba4cd48389920bcd17af556cec789135206797636893fe

Contents?: true

Size: 1007 Bytes

Versions: 4

Compression:

Stored size: 1007 Bytes

Contents

#
# Copyright (C) 2009  Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA


module DCloud
    class Transition

      attr_accessor :to
      attr_accessor :action

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

      def auto?()
        @action.nil?
      end

    end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
deltacloud-client-0.0.4 lib/dcloud/transition.rb
jcrossley-deltacloud-client-0.0.3.1 lib/dcloud/transition.rb
deltacloud-client-0.0.3 lib/dcloud/transition.rb
deltacloud-client-0.0.2 lib/dcloud/transition.rb