Sha256: 376bd10acae17e0d07817dfca60820fd5bccdf21aa1303a8850864ac8003c85a

Contents?: true

Size: 732 Bytes

Versions: 6

Compression:

Stored size: 732 Bytes

Contents

require 'ostruct'
require 'set'
require 'pathname'
require 'hashie'
require 'datapimp/core_ext'
require 'active_support'

module Datapimp
  def self.config
    Datapimp::Configuration.instance
  end

  def self.pwd
    Pathname(ENV.fetch('DATAPIMP_PWD') { Dir.pwd })
  end

  def self.lib
    Pathname(File.dirname(__FILE__))
  end

  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
end

require 'datapimp/version'
require 'datapimp/configuration'
require 'datapimp/sources'
require 'datapimp/sync'
require 'datapimp/sync/dropbox_folder'
require 'datapimp/sync/google_drive_folder'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datapimp-1.0.6 lib/datapimp.rb
datapimp-1.0.5 lib/datapimp.rb
datapimp-1.0.4 lib/datapimp.rb
datapimp-1.0.3 lib/datapimp.rb
datapimp-1.0.2 lib/datapimp.rb
datapimp-1.0.1 lib/datapimp.rb