Sha256: 473799e8980a1145e5a8eb9591f0fe6b65b0395654296fbdef8c6848670f56ec

Contents?: true

Size: 349 Bytes

Versions: 173

Compression:

Stored size: 349 Bytes

Contents

module Softcover
  module Commands
    module Auth
      extend self

      def login(email, password)
        require "softcover/client"
        client = Softcover::Client.new email, password
        client.login!
      end

      def logout
        require "softcover/config"
        Softcover::Config['api_key'] = nil
      end
    end
  end
end

Version data entries

173 entries across 173 versions & 2 rubygems

Version Path
softcover-0.7.1 lib/softcover/commands/auth.rb
softcover-0.7.0 lib/softcover/commands/auth.rb
softcover-0.6.10 lib/softcover/commands/auth.rb
softcover-0.6.9 lib/softcover/commands/auth.rb
softcover-0.6.7 lib/softcover/commands/auth.rb
softcover-0.6.6 lib/softcover/commands/auth.rb
softcover-0.6.5 lib/softcover/commands/auth.rb
softcover-0.6.4 lib/softcover/commands/auth.rb
softcover-0.6.3 lib/softcover/commands/auth.rb
softcover-0.6.2 lib/softcover/commands/auth.rb
softcover-0.6.1 lib/softcover/commands/auth.rb
softcover-0.6.0 lib/softcover/commands/auth.rb
softcover-0.5.0 lib/softcover/commands/auth.rb