Class: ObsDeploy::CLI::Commands::RefreshRepositories
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- ObsDeploy::CLI::Commands::RefreshRepositories
- Defined in:
- lib/obs_deploy/cli/commands/refresh_repositories.rb
Instance Method Summary collapse
Instance Method Details
#call(user:, host:, port:) ⇒ Object
12 13 14 15 16 |
# File 'lib/obs_deploy/cli/commands/refresh_repositories.rb', line 12 def call(user:, host:, port:, **) ssh_driver = ObsDeploy::SSH.new(user: user, server: host, port: port) zypper = ObsDeploy::Zypper.new ssh_driver.run(zypper.refresh) end |