Class: Repomate::Manager
- Inherits:
-
Object
- Object
- Repomate::Manager
- Defined in:
- lib/repomate/manager.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Manager
constructor
A new instance of Manager.
- #run ⇒ Object
Constructor Details
#initialize(config) ⇒ Manager
Returns a new instance of Manager.
4 5 6 |
# File 'lib/repomate/manager.rb', line 4 def initialize(config) @config = config end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/repomate/manager.rb', line 8 def run case @config.command when 'sync' sync_all_repos when 'add' add_repo when 'remove' remove_repo when 'list' list_repos else puts "Unknown command: #{@config.command}" exit 1 end end |