Sha256: a954ab7e95061f7ec1b43e9044c09aa1aef36b254bc3413bd3998506492071e2

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

begin
  require 'dropbox_sdk'
  require 'launchy'
rescue Exception => e
  puts "Some gems are missing."
  abort e.message
end

require_relative'dropbox_utility/config'
require_relative 'dropbox_utility/version'
require_relative 'dropbox_utility/session'
require_relative 'dropbox_utility/client'
require_relative 'dropbox_utility/files'


module DropboxUtility

  @@session = nil
  @@client = nil

  def self.authenticate
    @@session = Session::exists? ? Session::retrieve : Session::create
    @@client = Client.new(@@session, Config::ACCESS_TYPE)
  end

  def self.client
    @@client
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dropbox-utility-0.0.5 lib/dropbox_utility.rb
dropbox-utility-0.0.4 lib/dropbox_utility.rb