Class: Credentials::PasswordstoreProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/credentials/passwordstore_provider.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ PasswordstoreProvider

Returns a new instance of PasswordstoreProvider.



4
5
6
7
8
# File 'lib/credentials/passwordstore_provider.rb', line 4

def initialize(opts)
  
  @command = opts['command'] || '/usr/bin/pass'
  @name = opts['name'] or raise ArgumentError.new("Missing name for Provider")
end

Instance Method Details

#passwordObject



14
15
16
# File 'lib/credentials/passwordstore_provider.rb', line 14

def password
  credentials[:password]
end

#usernameObject



10
11
12
# File 'lib/credentials/passwordstore_provider.rb', line 10

def username
  credentials[:username]
end