module YAVM::Stores
Public Class Methods
locate_versions(quick = false)
click to toggle source
# File lib/yavm/stores.rb, line 19 def locate_versions(quick = false) versions = stores.map do |store| store = store.new if store.exists? if quick return YAVM::Versions.new([store.to_version]) else next store.to_version end end end YAVM::Versions.new(versions) end
stores()
click to toggle source
# File lib/yavm/stores.rb, line 10 def stores [ YAVM::Stores::Semver, YAVM::Stores::Package, YAVM::Stores::Bower, YAVM::Stores::GemSpec ] end
Private Instance Methods
locate_versions(quick = false)
click to toggle source
# File lib/yavm/stores.rb, line 19 def locate_versions(quick = false) versions = stores.map do |store| store = store.new if store.exists? if quick return YAVM::Versions.new([store.to_version]) else next store.to_version end end end YAVM::Versions.new(versions) end
stores()
click to toggle source
# File lib/yavm/stores.rb, line 10 def stores [ YAVM::Stores::Semver, YAVM::Stores::Package, YAVM::Stores::Bower, YAVM::Stores::GemSpec ] end