Sha256: 482c571f4cb7f8968b7c8edd7f548ab827bf27d3e831a74e4ea13bd82be03e32

Contents?: true

Size: 360 Bytes

Versions: 11

Compression:

Stored size: 360 Bytes

Contents

Burglar.extra_dep('creds', 'keylime')

module LogCabin
  module Modules
    ##
    # Provide a helper to access OSX keychain credentials
    module Creds
      def creds(server, account)
        credential = Keylime.new(server: server, account: account)
        credential.get!("Enter password for #{server} (#{account})").password
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
burglar-0.3.2 lib/burglar/helpers/creds.rb
burglar-0.3.1 lib/burglar/helpers/creds.rb
burglar-0.3.0 lib/burglar/helpers/creds.rb
burglar-0.2.0 lib/burglar/helpers/creds.rb
burglar-0.1.4 lib/burglar/helpers/creds.rb
burglar-0.1.3 lib/burglar/helpers/creds.rb
burglar-0.1.2 lib/burglar/helpers/creds.rb
burglar-0.1.1 lib/burglar/helpers/creds.rb
burglar-0.1.0 lib/burglar/helpers/creds.rb
burglar-0.0.3 lib/burglar/helpers/creds.rb
burglar-0.0.2 lib/burglar/helpers/creds.rb