Class: Dscli::Connectors
- Inherits:
-
Object
- Object
- Dscli::Connectors
- Defined in:
- lib/dscli/connectors.rb
Constant Summary collapse
- CONNECTORS =
[["HTTP", "http"], ["CouchDB", "couchdb"], ["DynamoDB", "dynamodb"], ["ElasticSearch", "elasticsearch"], ["FTP", "ftp"], ["Google BigQuery", "bigquery"], ["MongoDB", "mongodb"], ["MySQL", "mysql"], ["Pull", "pull"], ["Redis", "redis"], ["S3", "s3"], ["SFTP", "sftp"], ["Splunk Storm REST", "splunkstormrest"], ["Splunk Enterprise", "splunkenterprise"], ["Zoomdata", "zoomdata"]]
Instance Method Summary collapse
- #bigquery ⇒ Object
- #couchdb ⇒ Object
- #dynamodb ⇒ Object
- #elasticsearch ⇒ Object
- #ftp ⇒ Object
-
#http ⇒ Object
Method to create each Push Destination.
- #list ⇒ Object
- #mongodb ⇒ Object
- #mysql ⇒ Object
- #pull ⇒ Object
- #redis ⇒ Object
- #s3 ⇒ Object
- #setOutputParams(connector) ⇒ Object
- #sftp ⇒ Object
- #splunkenterprise ⇒ Object
- #splunkstormrest ⇒ Object
- #zoomdata ⇒ Object
Instance Method Details
#bigquery ⇒ Object
52 53 |
# File 'lib/dscli/connectors.rb', line 52 def bigquery end |
#couchdb ⇒ Object
40 41 |
# File 'lib/dscli/connectors.rb', line 40 def couchdb end |
#dynamodb ⇒ Object
43 44 |
# File 'lib/dscli/connectors.rb', line 43 def dynamodb end |
#elasticsearch ⇒ Object
46 47 |
# File 'lib/dscli/connectors.rb', line 46 def elasticsearch end |
#ftp ⇒ Object
49 50 |
# File 'lib/dscli/connectors.rb', line 49 def ftp end |
#http ⇒ Object
Method to create each Push Destination
37 38 |
# File 'lib/dscli/connectors.rb', line 37 def http end |
#list ⇒ Object
20 21 22 |
# File 'lib/dscli/connectors.rb', line 20 def list conenctors = CONNECTORS.map { |c| c[1] } end |
#mongodb ⇒ Object
55 56 |
# File 'lib/dscli/connectors.rb', line 55 def mongodb end |
#mysql ⇒ Object
58 59 |
# File 'lib/dscli/connectors.rb', line 58 def mysql end |
#pull ⇒ Object
61 62 63 64 |
# File 'lib/dscli/connectors.rb', line 61 def pull @push[:format] = @op.format return @push end |
#redis ⇒ Object
66 67 |
# File 'lib/dscli/connectors.rb', line 66 def redis end |
#s3 ⇒ Object
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/dscli/connectors.rb', line 69 def s3 @push[:auth][:access_key] = @op.auth_access_key @push[:auth][:secret_key] = @op.auth_secret_key @push[:bucket] = @op.bucket @push[:directory] = @op.directory @push[:acl] = @op.acl @push[:file_prefix] = @op.file_prefix @push[:max_size] = @op.max_size return @push end |
#setOutputParams(connector) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/dscli/connectors.rb', line 24 def setOutputParams(connector) @op = Dscli::OutputParams.new @push = {} @push[:auth] = {} @push[:server_level_auth] = {} self.send(connector) end |
#sftp ⇒ Object
80 81 |
# File 'lib/dscli/connectors.rb', line 80 def sftp end |
#splunkenterprise ⇒ Object
86 87 |
# File 'lib/dscli/connectors.rb', line 86 def splunkenterprise end |
#splunkstormrest ⇒ Object
83 84 |
# File 'lib/dscli/connectors.rb', line 83 def splunkstormrest end |
#zoomdata ⇒ Object
89 90 |
# File 'lib/dscli/connectors.rb', line 89 def zoomdata end |