Class: Autoproj::RepositoryManagers::UnknownOSManager

Inherits:
Manager
  • Object
show all
Defined in:
lib/autoproj/repository_managers/unknown_os_manager.rb

Overview

Dummy repository manager used for unknown OSes. It simply displays a message to the user when repositories are needed

Instance Attribute Summary

Attributes inherited from Manager

#ws

Instance Method Summary collapse

Methods inherited from Manager

#os_dependencies

Constructor Details

#initialize(ws) ⇒ UnknownOSManager

Returns a new instance of UnknownOSManager.



6
7
8
9
# File 'lib/autoproj/repository_managers/unknown_os_manager.rb', line 6

def initialize(ws)
    @installed_osrepos = Set.new
    super(ws)
end

Instance Method Details

#install(osrepos) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/autoproj/repository_managers/unknown_os_manager.rb', line 20

def install(osrepos)
    super
    osrepos = osrepos.to_set
    osrepos -= @installed_osrepos
    result = osrepos_interaction_unknown_os unless osrepos.empty?
    @installed_osrepos |= osrepos
    result
end

#osrepos_interaction_unknown_osObject



11
12
13
14
15
16
17
18
# File 'lib/autoproj/repository_managers/unknown_os_manager.rb', line 11

def osrepos_interaction_unknown_os
    Autoproj.message "The build process requires some repositories to be added on our operating system", :bold
    Autoproj.message "If they are already added, simply ignore this message", :bold
    Autoproj.message "Press ENTER to continue ", :bold

    STDIN.readline
    nil
end