module Datapimp

The ‘Datapimp::Sources` module houses the various types of remote data stores we are reading and converting into a JSON array of objects that gets cached on our filesystem.

The ‘Datapimp::Sync` module will delegate to the underlying service layer which we are pushing or pulling files and data from. It will wrap the client implementation we are using.

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/datapimp.rb, line 9
def self.config
  Datapimp::Configuration.instance
end
lib() click to toggle source
# File lib/datapimp.rb, line 17
def self.lib
  Pathname(File.dirname(__FILE__))
end
method_missing(meth, *args, &block) click to toggle source
Calls superclass method
# File lib/datapimp.rb, line 21
def self.method_missing(meth, *args, &block)
  case
  when %w(dropbox amazon github google).include?(meth.to_s)
    Datapimp::Sync.send(meth, *args, &block)
  else
    super
  end
end
pwd() click to toggle source
# File lib/datapimp.rb, line 13
def self.pwd
  Pathname(ENV.fetch('DATAPIMP_PWD') { Dir.pwd })
end