Method: Gem::Molinillo::DependencyGraph::Log#pop!

Defined in:
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb

#pop!(graph) ⇒ Action

Pops the most recent action from the log and undoes the action

Parameters:

Returns:

  • (Action)

    the action that was popped off the log



63
64
65
66
67
68
69
70
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb', line 63

def pop!(graph)
  return unless action = @current_action
  unless @current_action = action.previous
    @first_action = nil
  end
  action.down(graph)
  action
end