Class: Milestoner::CLI::Actions::Cache::Delete

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/milestoner/cli/actions/cache/delete.rb

Overview

Handles deleting a user from the cache.

Instance Method Summary collapse

Instance Method Details

#call(name) ⇒ Object



17
18
19
20
# File 'lib/milestoner/cli/actions/cache/delete.rb', line 17

def call name
  client.write(:users) { delete name }
        .either(method(:success), method(:failure))
end