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

Version Path
machinery-tool-1.24.1 workload_mapper/wordpress/clue.rb
machinery-tool-1.24.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.23.1 workload_mapper/wordpress/clue.rb
machinery-tool-1.23.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.22.3 workload_mapper/wordpress/clue.rb
machinery-tool-1.22.2 workload_mapper/wordpress/clue.rb
machinery-tool-1.22.1 workload_mapper/wordpress/clue.rb
machinery-tool-1.22.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.21.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.20.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.19.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.18.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.17.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.16.4 workload_mapper/wordpress/clue.rb
machinery-tool-1.16.3 workload_mapper/wordpress/clue.rb
machinery-tool-1.16.2 workload_mapper/wordpress/clue.rb
machinery-tool-1.16.1 workload_mapper/wordpress/clue.rb
machinery-tool-1.16.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.15.0 workload_mapper/wordpress/clue.rb
machinery-tool-1.14.2 workload_mapper/wordpress/clue.rb