Class: Dydra::Command::Logout

Inherits:
Dydra::Command show all
Defined in:
lib/dydra/command/logout.rb

Overview

Deletes local credentials

Instance Method Summary (collapse)

Methods inherited from Dydra::Command

#abort, #basename, #catch_errors, #debug?, #initialize, #parse_repository_specs, #parse_resource_specs, #require_gem!, #stderr, #stdout, #validate_repository_specs, #validate_resource_specs, #verbose?, #wrap_errors

Methods included from Dydra::Client

authenticate!, credentials_file, delete, get, get_json, post, reset!, resource, rpc, setup?

Constructor Details

This class inherits a constructor from Dydra::Command

Instance Method Details

- execute(*args)

This method returns an undefined value.



8
9
10
# File 'lib/dydra/command/logout.rb', line 8

def execute(*args)
  File.delete(Dydra::Client.credentials_file)
end