class Milestoner::CLI::Actions::Cache::List

Handles listing users within the cache.

Public Instance Methods

call(*) click to toggle source
# File lib/milestoner/cli/actions/cache/list.rb, line 17
def call(*)
  logger.info { "Listing users..." }
  client.read(:users, &:all).bind { |users| print users }
end

Private Instance Methods

header() click to toggle source
# File lib/milestoner/cli/actions/cache/list.rb, line 31
def header
  header = "External ID, Handle, Name"

  io.puts header
  io.puts "-" * header.size
end
print(users) click to toggle source