Class: Gojira::Deck::Gateway

Inherits:
Base
  • Object
show all
Defined in:
lib/gojira/deck/gateway.rb

Instance Attribute Summary

Attributes inherited from Base

#binary_path, #error, #output, #params

Instance Method Summary collapse

Methods inherited from Base

#execute

Constructor Details

#initialize(binary_path = 'deck', kong_addr = nil, config_file = nil, timeout = nil, tls_params = {}) ⇒ Gateway

Returns a new instance of Gateway.



6
7
8
# File 'lib/gojira/deck/gateway.rb', line 6

def initialize(binary_path = 'deck', kong_addr = nil, config_file = nil, timeout = nil, tls_params = {})
  super
end

Instance Method Details

#diff(state_file) ⇒ Object



15
16
17
18
# File 'lib/gojira/deck/gateway.rb', line 15

def diff(state_file)
  command = "gateway diff #{state_file}"
  execute(command)
end

#dumpObject



20
21
22
23
# File 'lib/gojira/deck/gateway.rb', line 20

def dump
  command = 'gateway dump'
  execute(command)
end

#sync(state_file) ⇒ Object



10
11
12
13
# File 'lib/gojira/deck/gateway.rb', line 10

def sync(state_file)
  command = "gateway sync #{state_file}"
  execute(command)
end

#validate(state_file) ⇒ Object



25
26
27
28
# File 'lib/gojira/deck/gateway.rb', line 25

def validate(state_file)
  command = "gateway validate #{state_file}"
  execute(command)
end