Exception: SemanticPuppet::Dependency::UnsatisfiableGraph

Inherits:
StandardError
  • Object
show all
Defined in:
lib/semantic_puppet/dependency/unsatisfiable_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph, unsatisfied = nil) ⇒ UnsatisfiableGraph

Returns a new instance of UnsatisfiableGraph.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/semantic_puppet/dependency/unsatisfiable_graph.rb', line 8

def initialize(graph, unsatisfied = nil)
  @graph = graph

  deps = sentence_from_list(graph.modules)

  if unsatisfied
    @unsatisfied = unsatisfied
    super "Could not find satisfying releases of #{unsatisfied} for #{deps}"
  else
    super "Could not find satisfying releases for #{deps}"
  end
end

Instance Attribute Details

#graphObject (readonly)

Returns the value of attribute graph.



6
7
8
# File 'lib/semantic_puppet/dependency/unsatisfiable_graph.rb', line 6

def graph
  @graph
end

#unsatisfiedObject (readonly)

Returns the value of attribute unsatisfied.



6
7
8
# File 'lib/semantic_puppet/dependency/unsatisfiable_graph.rb', line 6

def unsatisfied
  @unsatisfied
end