Sha256: 33f991d2811463b32fcfe505572626b987c17cd4d4dad1a8ffc2f8d4fc3953e4

Contents?: true

Size: 916 Bytes

Versions: 15

Compression:

Stored size: 916 Bytes

Contents

# frozen_string_literal: true
module Bundler::Molinillo
  class DependencyGraph
    # An action that modifies a {DependencyGraph} that is reversible.
    # @abstract
    class Action
      # rubocop:disable Lint/UnusedMethodArgument

      # @return [Symbol] The name of the action.
      def self.name
        raise 'Abstract'
      end

      # Performs the action on the given graph.
      # @param  [DependencyGraph] graph the graph to perform the action on.
      # @return [Void]
      def up(graph)
        raise 'Abstract'
      end

      # Reverses the action on the given graph.
      # @param  [DependencyGraph] graph the graph to reverse the action on.
      # @return [Void]
      def down(graph)
        raise 'Abstract'
      end

      # @return [Action,Nil] The previous action
      attr_accessor :previous

      # @return [Action,Nil] The next action
      attr_accessor :next
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
bundler-1.13.7 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
rubygems-update-2.6.8 bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.6 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.5 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.4 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.3 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.2 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
rubygems-update-2.6.7 bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.1 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.0 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.0.rc.2 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.0.rc.1 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
rubygems-update-2.6.6 bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
rubygems-update-2.6.5 bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
bundler-1.13.0.pre.1 lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb