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.4.5 lib/softcover/commands/auth.rb
softcover-1.4.3 lib/softcover/commands/auth.rb
softcover-1.4.2 lib/softcover/commands/auth.rb
softcover-1.4.1 lib/softcover/commands/auth.rb
softcover-1.4.0 lib/softcover/commands/auth.rb
softcover-1.3.4 lib/softcover/commands/auth.rb
softcover-1.3.3 lib/softcover/commands/auth.rb
softcover-1.3.2 lib/softcover/commands/auth.rb
softcover-1.3.1 lib/softcover/commands/auth.rb
softcover-1.3.0 lib/softcover/commands/auth.rb
softcover-1.2.15 lib/softcover/commands/auth.rb
softcover-1.2.14 lib/softcover/commands/auth.rb
softcover-1.2.13 lib/softcover/commands/auth.rb
softcover-1.2.12 lib/softcover/commands/auth.rb
softcover-1.2.11 lib/softcover/commands/auth.rb
softcover-1.2.10 lib/softcover/commands/auth.rb
softcover-1.2.9 lib/softcover/commands/auth.rb
softcover-1.2.8 lib/softcover/commands/auth.rb
softcover-1.2.7 lib/softcover/commands/auth.rb
softcover-1.2.6 lib/softcover/commands/auth.rb