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_ary, #to_s

Constructor Details

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

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


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

def enabled?
  @runner.check_yumrepo_is_enabled(@name)
end

#exists?Boolean

Returns:

  • (Boolean)


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

def exists?
  @runner.check_yumrepo_exists(@name)
end