Class: Mrsk::Commands::Base
- Inherits:
-
Object
- Object
- Mrsk::Commands::Base
- Defined in:
- lib/mrsk/commands/base.rb
Direct Known Subclasses
Accessory, App, Auditor, Builder, Mrsk::Commands::Builder::Base, Prune, Registry, Traefik
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
- #run_over_ssh(command, host:) ⇒ Object
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/mrsk/commands/base.rb', line 7 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'lib/mrsk/commands/base.rb', line 5 def config @config end |
Instance Method Details
#run_over_ssh(command, host:) ⇒ Object
11 12 13 |
# File 'lib/mrsk/commands/base.rb', line 11 def run_over_ssh(command, host:) "ssh -t #{config.ssh_user}@#{host} '#{command}'" end |