Module: BlueprintAgreement::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/blueprint_agreement/config.rb

Constant Summary collapse

@@active_service =
nil
@@exclude_attributes =
nil
@@allow_headers =
nil
@@port =
"8082"
@@hostname =
"http://localhost"

Instance Method Summary collapse

Instance Method Details

#active_serviceObject



32
33
34
# File 'lib/blueprint_agreement/config.rb', line 32

def active_service
  @@active_service
end

#active_service=(active_service) ⇒ Object



28
29
30
# File 'lib/blueprint_agreement/config.rb', line 28

def active_service=(active_service)
  @@active_service = active_service
end

#active_service?Boolean

Returns:

  • (Boolean)


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

def active_service?
  !!@@active_service
end

#allow_headersObject



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

def allow_headers
  @@allow_headers
end

#allow_headers=(headers) ⇒ Object



40
41
42
# File 'lib/blueprint_agreement/config.rb', line 40

def allow_headers=(headers)
  @@allow_headers = headers.map { |header| "--header #{header}" }.join(" ")
end

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

Yields:

  • (_self)

Yield Parameters:



10
# File 'lib/blueprint_agreement/config.rb', line 10

def configure; yield self end

#default_formatObject



48
49
50
# File 'lib/blueprint_agreement/config.rb', line 48

def default_format
  '*.apib'
end

#exclude_attributesObject



64
65
66
# File 'lib/blueprint_agreement/config.rb', line 64

def exclude_attributes
  @@exclude_attributes
end

#exclude_attributes=(exclude_attributes) ⇒ Object



20
21
22
# File 'lib/blueprint_agreement/config.rb', line 20

def exclude_attributes=(exclude_attributes)
  @@exclude_attributes = exclude_attributes
end

#hostnameObject



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

def hostname
  @@hostname
end

#hostname=(host) ⇒ Object



60
61
62
# File 'lib/blueprint_agreement/config.rb', line 60

def hostname=(host)
  @@hostname = host
end

#portObject



52
53
54
# File 'lib/blueprint_agreement/config.rb', line 52

def port
  @@port
end

#port=(port) ⇒ Object



12
13
14
# File 'lib/blueprint_agreement/config.rb', line 12

def port=(port)
  @@port = port
end

#server_path(path = './docs') ⇒ Object



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

def server_path(path = './docs')
  @server_path ||= path
end

#server_path=(server_path) ⇒ Object



16
17
18
# File 'lib/blueprint_agreement/config.rb', line 16

def server_path=(server_path)
  @server_path = server_path
end