class Inspec::Resources::YumRepoLegacy

this is deprecated syntax and will be removed in future versions
for compatability with serverspec

def deprecated

def deprecated
  warn '[DEPRECATION] `yumrepo(reponame)` is deprecated.  Please use `yum.repo(reponame)` instead.'
end

def enabled?

def enabled?
  deprecated
  @repository.enabled?
end

def exists?

def exists?
  deprecated
  @repository.exist?
end

def initialize(name)

def initialize(name)
  super()
  @repository = repo(name)
end