Class: Rubyists::Opr::Commands::List::Vaults
- Inherits:
-
Rubyists::Opr::Command
- Object
- Rubyists::Opr::Command
- Rubyists::Opr::Commands::List::Vaults
- Defined in:
- lib/rubyists::opr/commands/list/vaults.rb
Overview
List Vaults command
Instance Attribute Summary
Attributes inherited from Rubyists::Opr::Command
Instance Method Summary collapse
-
#execute(input: $stdin, output: $stdout) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#initialize(options) ⇒ Vaults
constructor
A new instance of Vaults.
Methods inherited from Rubyists::Opr::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(options) ⇒ Vaults
Returns a new instance of Vaults.
13 14 15 |
# File 'lib/rubyists::opr/commands/list/vaults.rb', line 13 def initialize() @options = end |
Instance Method Details
#execute(input: $stdin, output: $stdout) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
17 18 19 |
# File 'lib/rubyists::opr/commands/list/vaults.rb', line 17 def execute(input: $stdin, output: $stdout) # rubocop:disable Lint/UnusedMethodArgument Opr.with_login { output.puts Vault.all.map(&:name) } end |