Class: Jdt::XamppConfig

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

Instance Method Summary collapse

Constructor Details

#initializeXamppConfig

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_pathObject



72
73
74
# File 'lib/jdt/config.rb', line 72

def htdocs_path
  File.join(xampp_path,"htdocs")
end

#xampp_pathObject



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