Class: KalibroGem::KalibroCucumberHelpers::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Configuration

Returns a new instance of Configuration.



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 24

def initialize(attributes={})
  self.database               = "kalibro_test"
  self.user                   = "kalibro"
  self.password               = "kalibro"
  self.psql_file_path         = "/tmp/PostgreSQL.sql"
  self.query_file_path        = "/tmp/query"
  self.kalibro_home           = "/usr/share/tomcat6/.kalibro"
  self.tomcat_user            = "tomcat6"
  self.tomcat_group           = "tomcat6"
  self.tomcat_restart_command = "sudo\\ service\\ tomcat6\\ restart"

  attributes.each { |field, value| send("#{field}=", value) if respond_to?("#{field}=") }
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def database
  @database
end

#kalibro_homeObject

Returns the value of attribute kalibro_home.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def kalibro_home
  @kalibro_home
end

#passwordObject

Returns the value of attribute password.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def password
  @password
end

#psql_file_pathObject

Returns the value of attribute psql_file_path.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def psql_file_path
  @psql_file_path
end

#query_file_pathObject

Returns the value of attribute query_file_path.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def query_file_path
  @query_file_path
end

#tomcat_groupObject

Returns the value of attribute tomcat_group.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def tomcat_group
  @tomcat_group
end

#tomcat_restart_commandObject

Returns the value of attribute tomcat_restart_command.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def tomcat_restart_command
  @tomcat_restart_command
end

#tomcat_userObject

Returns the value of attribute tomcat_user.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def tomcat_user
  @tomcat_user
end

#userObject

Returns the value of attribute user.



20
21
22
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20

def user
  @user
end