Class: Autoproj::RepositoryManagers::UnknownOSManager
- 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
Instance Method Summary collapse
-
#initialize(ws) ⇒ UnknownOSManager
constructor
A new instance of UnknownOSManager.
- #install(osrepos) ⇒ Object
- #osrepos_interaction_unknown_os ⇒ Object
Methods inherited from Manager
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_os ⇒ Object
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. "The build process requires some repositories to be added on our operating system", :bold Autoproj. "If they are already added, simply ignore this message", :bold Autoproj. "Press ENTER to continue ", :bold STDIN.readline nil end |