Class: Rubyists::Opr::Commands::List::Vaults

Inherits:
Rubyists::Opr::Command show all
Defined in:
lib/rubyists::opr/commands/list/vaults.rb

Overview

List Vaults command

Instance Attribute Summary

Attributes inherited from Rubyists::Opr::Command

#options

Instance Method Summary collapse

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)
  @options = 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. { output.puts Vault.all.map(&:name) }
end