Module: Doppler

Defined in:
lib/doppler.rb,
lib/doppler/client.rb,
lib/doppler/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

PRIORITY_REMOTE =

configure priority

0
PRIORITY_LOCAL =
1
VERSION =
"0.2.0".freeze
@@host_url =

configure doppler host url

"https://api.doppler.com"
@@api_key =

configure api key

"sample-api-key"
@@pipeline =

configure pipeline

"sample-pipeline"
@@environment =

configure environment

"development_ruby"
@@priority =
PRIORITY_REMOTE
@@track_keys =

configure track keys

[]
@@ignore_keys =

configure ignore keys

[]
@@enable_service =

configure service to be mocked so that no screenshots are taken, and uploaded to service.

false
@@logger =

configure logger, which will be used to log issues if any

Logger.new(STDOUT)

Class Method Summary collapse

Class Method Details

.api_keyObject



18
19
20
# File 'lib/doppler.rb', line 18

def self.api_key
  @@api_key
end

.api_key=(api_key) ⇒ Object



15
16
17
# File 'lib/doppler.rb', line 15

def self.api_key=(api_key)
  @@api_key = api_key
end

.configure {|_self| ... } ⇒ Object

helper to configure above variables.

Yields:

  • (_self)

Yield Parameters:

  • _self (Doppler)

    the object that the method was called on



89
90
91
# File 'lib/doppler.rb', line 89

def self.configure
  yield(self)
end

.enable_serviceObject



75
76
77
# File 'lib/doppler.rb', line 75

def self.enable_service
  @@enable_service
end

.enable_service=(enable) ⇒ Object



72
73
74
# File 'lib/doppler.rb', line 72

def self.enable_service=(enable)
  @@enable_service = enable
end

.environmentObject



36
37
38
# File 'lib/doppler.rb', line 36

def self.environment
  @@environment
end

.environment=(environment) ⇒ Object



33
34
35
# File 'lib/doppler.rb', line 33

def self.environment=(environment)
  @@environment = environment
end

.host_urlObject



9
10
11
# File 'lib/doppler.rb', line 9

def self.host_url
  @@host_url
end

.host_url=(host) ⇒ Object



6
7
8
# File 'lib/doppler.rb', line 6

def self.host_url=(host)
  @@host_url = host_url
end

.ignore_keysObject



65
66
67
# File 'lib/doppler.rb', line 65

def self.ignore_keys
  @@ignore_keys
end

.ignore_keys=(ignore_keys) ⇒ Object



62
63
64
# File 'lib/doppler.rb', line 62

def self.ignore_keys=(ignore_keys)
  @@ignore_keys = ignore_keys
end

.loggerObject



84
85
86
# File 'lib/doppler.rb', line 84

def self.logger
  @@logger
end

.logger=(new_logger) ⇒ Object



81
82
83
# File 'lib/doppler.rb', line 81

def self.logger=(new_logger)
  @@logger = new_logger
end

.pipelineObject



27
28
29
# File 'lib/doppler.rb', line 27

def self.pipeline
  @@pipeline
end

.pipeline=(pipeline) ⇒ Object



24
25
26
# File 'lib/doppler.rb', line 24

def self.pipeline=(pipeline)
  @@pipeline = pipeline
end

.priorityObject



47
48
49
# File 'lib/doppler.rb', line 47

def self.priority
  @@priority
end

.priority=(priority) ⇒ Object



44
45
46
# File 'lib/doppler.rb', line 44

def self.priority=(priority)
  @@priority = priority
end

.track_keysObject



56
57
58
# File 'lib/doppler.rb', line 56

def self.track_keys
  @@track_keys
end

.track_keys=(track_keys) ⇒ Object



53
54
55
# File 'lib/doppler.rb', line 53

def self.track_keys=(track_keys)
  @@track_keys = track_keys
end