Class: KalibroGem::KalibroCucumberHelpers::Configuration
- Inherits:
-
Object
- Object
- KalibroGem::KalibroCucumberHelpers::Configuration
- Defined in:
- lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#kalibro_home ⇒ Object
Returns the value of attribute kalibro_home.
-
#password ⇒ Object
Returns the value of attribute password.
-
#psql_file_path ⇒ Object
Returns the value of attribute psql_file_path.
-
#query_file_path ⇒ Object
Returns the value of attribute query_file_path.
-
#tomcat_group ⇒ Object
Returns the value of attribute tomcat_group.
-
#tomcat_restart_command ⇒ Object
Returns the value of attribute tomcat_restart_command.
-
#tomcat_user ⇒ Object
Returns the value of attribute tomcat_user.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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
#database ⇒ Object
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_home ⇒ Object
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 |
#password ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_group ⇒ Object
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_command ⇒ Object
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_user ⇒ Object
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 |
#user ⇒ Object
Returns the value of attribute user.
20 21 22 |
# File 'lib/kalibro_gem/kalibro_cucumber_helpers/configuration.rb', line 20 def user @user end |