Class: Yast::PackagesProposalClass

Inherits:
Module
  • Object
show all
Defined in:
lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb

Overview

Replacement for the Yast::PackagesProposal module

Instance Method Summary collapse

Instance Method Details

#AddResolvables(unique_id, type, resolvables, optional: false) ⇒ Object



33
34
35
36
# File 'lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb', line 33

def AddResolvables(unique_id, type, resolvables, optional: false)
  client.add_resolvables(unique_id, type, resolvables || [], optional: optional)
  true
end

#GetResolvables(unique_id, type, optional: false) ⇒ Object



45
46
47
# File 'lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb', line 45

def GetResolvables(unique_id, type, optional: false)
  client.get_resolvables(unique_id, type, optional: optional)
end

#mainObject



27
28
29
30
# File 'lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb', line 27

def main
  puts "Loading mocked module #{__FILE__}"
  @client = DInstaller::DBus::Clients::Software.new
end

#RemoveResolvables(unique_id, type, resolvables, optional: false) ⇒ Object



50
51
52
53
# File 'lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb', line 50

def RemoveResolvables(unique_id, type, resolvables, optional: false)
  client.remove_resolvables(unique_id, type, resolvables || [], optional: optional)
  true
end

#SetResolvables(unique_id, type, resolvables, optional: false) ⇒ Object



39
40
41
42
# File 'lib/dinstaller/dbus/y2dir/manager/modules/PackagesProposal.rb', line 39

def SetResolvables(unique_id, type, resolvables, optional: false)
  client.set_resolvables(unique_id, type, resolvables || [], optional: optional)
  true
end