lib/solve/graph.rb
# Add an artifact to the graph
#
# @param [String] name
# @Param [String] version
Add an artifact to the graph
Add an artifact to the graph
def artifact(name, version)
      unless artifact?(name, version)
        artifact = Artifact.new(self, name, version)
        @artifacts["#{name}-#{version}"] = artifact
        @artifacts_by_name[name] << artifact
      end
      @artifacts["#{name}-#{version}"]
    end
def artifact ( name , version ) unless artifact? ( name , version ) artifact = Artifact . new ( self , name , version ) @artifacts [ "#{name}-#{version}" ] = artifact @artifacts_by_name [ name ] << artifact end @artifacts [ "#{name}-#{version}" ] end
Add an artifact to the graph
Add an artifact to the graph
name
<not_specific>
version
<not_specific>
<not_specific>
None
Param
None