Class: Serverspec::Type::Yumrepo

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/yumrepo.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/serverspec/type/yumrepo.rb', line 8

def enabled?
  backend.check_yumrepo_enabled(@name)
end

#exists?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/yumrepo.rb', line 4

def exists?
  backend.check_yumrepo(@name)
end