Sha256: 3e063948e8a6f6a9ca8665213556e751d4126f50542505de945053ae3a6632da

Contents?: true

Size: 841 Bytes

Versions: 2

Compression:

Stored size: 841 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/logging'
require 'datapimp/sources'
require 'datapimp/sync'
require 'datapimp/sync/dropbox_folder'
require 'datapimp/sync/google_drive_folder'
require 'datapimp/sync/s3_bucket'
require 'datapimp/sync/cloudfront_distribution'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datapimp-1.0.11 lib/datapimp.rb
datapimp-1.0.10 lib/datapimp.rb