Class: Shikibu::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shikibu.rb

Overview

Configuration object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



119
120
121
122
123
124
125
# File 'lib/shikibu.rb', line 119

def initialize
  @database_url = 'sqlite://shikibu.db'
  @service_name = 'shikibu'
  @auto_migrate = false
  @hooks = nil
  @use_listen_notify = nil # nil = auto-detect, true/false = manual
end

Instance Attribute Details

#auto_migrateObject

Returns the value of attribute auto_migrate.



117
118
119
# File 'lib/shikibu.rb', line 117

def auto_migrate
  @auto_migrate
end

#database_urlObject

Returns the value of attribute database_url.



117
118
119
# File 'lib/shikibu.rb', line 117

def database_url
  @database_url
end

#hooksObject

Returns the value of attribute hooks.



117
118
119
# File 'lib/shikibu.rb', line 117

def hooks
  @hooks
end

#service_nameObject

Returns the value of attribute service_name.



117
118
119
# File 'lib/shikibu.rb', line 117

def service_name
  @service_name
end

#use_listen_notifyObject

Returns the value of attribute use_listen_notify.



117
118
119
# File 'lib/shikibu.rb', line 117

def use_listen_notify
  @use_listen_notify
end