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