Class: Jdt::XamppConfig
- Inherits:
-
Object
- Object
- Jdt::XamppConfig
- Defined in:
- lib/jdt/config.rb
Instance Method Summary collapse
- #htdocs_path ⇒ Object
-
#initialize ⇒ XamppConfig
constructor
A new instance of XamppConfig.
- #xampp_path ⇒ Object
- #xampp_path=(path) ⇒ Object
Constructor Details
#initialize ⇒ XamppConfig
Returns a new instance of XamppConfig.
58 59 60 |
# File 'lib/jdt/config.rb', line 58 def initialize @yaml = Config.new("xampp.yml") end |
Instance Method Details
#htdocs_path ⇒ Object
72 73 74 |
# File 'lib/jdt/config.rb', line 72 def htdocs_path File.join(xampp_path,"htdocs") end |
#xampp_path ⇒ Object
68 69 70 |
# File 'lib/jdt/config.rb', line 68 def xampp_path @yaml.yaml_props["path"] end |
#xampp_path=(path) ⇒ Object
62 63 64 65 66 |
# File 'lib/jdt/config.rb', line 62 def xampp_path=(path) @yaml.update do |props| props["path"] = path end end |