Class: Dscli::Connectors

Inherits:
Object
  • Object
show all
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

Instance Method Details

#bigqueryObject



52
53
# File 'lib/dscli/connectors.rb', line 52

def bigquery
end

#couchdbObject



40
41
# File 'lib/dscli/connectors.rb', line 40

def couchdb
end

#dynamodbObject



43
44
# File 'lib/dscli/connectors.rb', line 43

def dynamodb
end

#elasticsearchObject



46
47
# File 'lib/dscli/connectors.rb', line 46

def elasticsearch
end

#ftpObject



49
50
# File 'lib/dscli/connectors.rb', line 49

def ftp
end

#httpObject

Method to create each Push Destination



37
38
# File 'lib/dscli/connectors.rb', line 37

def http
end

#listObject



20
21
22
# File 'lib/dscli/connectors.rb', line 20

def list
  conenctors = CONNECTORS.map { |c| c[1] }
end

#mongodbObject



55
56
# File 'lib/dscli/connectors.rb', line 55

def mongodb
end

#mysqlObject



58
59
# File 'lib/dscli/connectors.rb', line 58

def mysql
end

#pullObject



61
62
63
64
# File 'lib/dscli/connectors.rb', line 61

def pull
  @push[:format] = @op.format
  return @push
end

#redisObject



66
67
# File 'lib/dscli/connectors.rb', line 66

def redis
end

#s3Object



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

#sftpObject



80
81
# File 'lib/dscli/connectors.rb', line 80

def sftp
end

#splunkenterpriseObject



86
87
# File 'lib/dscli/connectors.rb', line 86

def splunkenterprise
end

#splunkstormrestObject



83
84
# File 'lib/dscli/connectors.rb', line 83

def splunkstormrest
end

#zoomdataObject



89
90
# File 'lib/dscli/connectors.rb', line 89

def zoomdata
end