Class: Captive::Commands::DbPsql
- Inherits:
-
Object
- Object
- Captive::Commands::DbPsql
- Defined in:
- lib/captive/commands/db_psql.rb
Instance Method Summary collapse
-
#initialize(kubectl:, target: DbTarget.new(kubectl: kubectl)) ⇒ DbPsql
constructor
A new instance of DbPsql.
- #run(app) ⇒ Object
Constructor Details
Instance Method Details
#run(app) ⇒ Object
14 15 16 17 |
# File 'lib/captive/commands/db_psql.rb', line 14 def run(app) pod, user, password = @target.resolve(app) @kubectl.psql_interactive(app, pod, user: user, password: password) end |