Sha256: 7cc8aef1e835b3875e4b270856dfdc0612077e744fb519ffd3340361c7c5d663

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

require 'pws'

module AWS
  module PWS
    class Client
      attr_accessor :raw_data, :cli

      def initialize
        @cli ||= ::PWS.new({})
        @raw_data = @cli.instance_variable_get(:@data)
      end

      def read(key)
        return unless raw_data[key]
        raw_data[key][:password]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-pws-0.1.1 lib/aws/pws/client.rb
aws-pws-0.1.0 lib/aws/pws/client.rb