Class: Mytotp::Commands::Service

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/mytotp/commands/service.rb

Overview

Class command for manage services.

Instance Method Summary collapse

Instance Method Details

#callObject

call the command function



8
9
10
11
12
# File 'lib/mytotp/commands/service.rb', line 8

def call(*)
  Mytotp::Models::Service.all.each do |s|
    puts CLI::UI.fmt "{{green:#{s.service.capitalize}}} - #{s.username.downcase}"
  end
end