Class: OpsKit::Configuration
- Inherits:
-
Object
- Object
- OpsKit::Configuration
- Defined in:
- lib/opskit/configuration.rb
Instance Attribute Summary collapse
-
#docroot ⇒ Object
Returns the value of attribute docroot.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project_root ⇒ Object
Returns the value of attribute project_root.
-
#template ⇒ Object
Returns the value of attribute template.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(name) ⇒ Configuration
9 10 11 12 13 14 15 |
# File 'lib/opskit/configuration.rb', line 9 def initialize name @name = name @project_root = "#{Dir.pwd}/#{name}" # get default location for project folders from ~/.opskit/config.yml or something @url = "dev.#{name}.nl" @template = "apache" @docroot = "#{@project_root}" end |
Instance Attribute Details
#docroot ⇒ Object
Returns the value of attribute docroot.
7 8 9 |
# File 'lib/opskit/configuration.rb', line 7 def docroot @docroot end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/opskit/configuration.rb', line 3 def name @name end |
#project_root ⇒ Object
Returns the value of attribute project_root.
4 5 6 |
# File 'lib/opskit/configuration.rb', line 4 def project_root @project_root end |
#template ⇒ Object
Returns the value of attribute template.
6 7 8 |
# File 'lib/opskit/configuration.rb', line 6 def template @template end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/opskit/configuration.rb', line 5 def url @url end |