Sha256: ff346da308ef83944730c2c87f92ae68058b7d61991a297523171d4448973de9
Contents?: true
Size: 514 Bytes
Versions: 22
Compression:
Stored size: 514 Bytes
Contents
if system.runs_service?("apache2") apache_vhosts = system["unmanaged_files"].files.select { |f| /vhosts\.d/ =~ f.name }.map(&:name) apache_vhosts.each do |vhost| root = system.read_config(vhost, "DocumentRoot") if system.has_file?(File.join(root, "wp-config.php")) identify "wordpress", "web" parameter "ports", ["8000:8000"] parameter "links", ["db"] extract File.join(root, ""), "data" break # for now we only handle the first wordpress that was found end end end
Version data entries
22 entries across 22 versions & 1 rubygems