Module: Datapimp
- Defined in:
- lib/datapimp/sync.rb,
lib/datapimp.rb,
lib/datapimp/cli.rb,
lib/datapimp/util.rb,
lib/datapimp/logging.rb,
lib/datapimp/sources.rb,
lib/datapimp/version.rb,
lib/datapimp/clients/keen.rb,
lib/datapimp/configuration.rb,
lib/datapimp/clients/amazon.rb,
lib/datapimp/clients/github.rb,
lib/datapimp/clients/google.rb,
lib/datapimp/sync/s3_bucket.rb,
lib/datapimp/clients/dropbox.rb,
lib/datapimp/sync/dropbox_folder.rb,
lib/datapimp/sync/google_drive_folder.rb,
lib/datapimp/sync/cloudfront_distribution.rb
Overview
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.
Defined Under Namespace
Modules: Cli, Clients, Logging, Sources, Sync, Util
Classes: Configuration
Constant Summary
collapse
- VERSION =
GVB.version
Class Method Summary
collapse
Class Method Details
.lib ⇒ Object
17
18
19
|
# File 'lib/datapimp.rb', line 17
def self.lib
Pathname(File.dirname(__FILE__))
end
|
.method_missing(meth, *args, &block) ⇒ Object
21
22
23
24
25
26
27
28
|
# 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 ⇒ Object
13
14
15
|
# File 'lib/datapimp.rb', line 13
def self.pwd
Pathname(ENV.fetch('DATAPIMP_PWD') { Dir.pwd })
end
|