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-1.10.5 lib/softcover/commands/auth.rb
softcover-1.10.4 lib/softcover/commands/auth.rb
softcover-1.10.3 lib/softcover/commands/auth.rb
softcover-1.10.2 lib/softcover/commands/auth.rb
softcover-1.10.1 lib/softcover/commands/auth.rb
softcover-1.10.0 lib/softcover/commands/auth.rb
softcover-1.9.1 lib/softcover/commands/auth.rb
softcover-1.9.0 lib/softcover/commands/auth.rb
softcover-1.8.3 lib/softcover/commands/auth.rb
softcover-1.8.2 lib/softcover/commands/auth.rb
softcover-1.8.1 lib/softcover/commands/auth.rb
softcover-1.8.0 lib/softcover/commands/auth.rb
softcover-1.7.5 lib/softcover/commands/auth.rb
softcover-1.7.4 lib/softcover/commands/auth.rb
softcover-1.7.3 lib/softcover/commands/auth.rb
softcover-1.7.2 lib/softcover/commands/auth.rb
softcover-1.7.1 lib/softcover/commands/auth.rb
softcover-1.7.0 lib/softcover/commands/auth.rb
softcover-1.6.5 lib/softcover/commands/auth.rb
softcover-1.6.4 lib/softcover/commands/auth.rb