Module: Tentacle

Defined in:
lib/tentacle.rb

Defined Under Namespace

Classes: FeedCollection, RepoFeed

Constant Summary collapse

VERSION =
'0.1.3'

Instance Method Summary collapse

Instance Method Details

#validate_url(url) ⇒ Object



5
6
7
8
9
# File 'lib/tentacle.rb', line 5

def validate_url(url)
  RestClient.get(url + '/repodata/repomd.xml') rescue return false
  YumRepo::Repomd.new(url) rescue return false
  true
end