mirror of
https://gh.wpcy.net/https://github.com/Chassis/puppet-wp.git
synced 2026-05-04 12:04:28 +08:00
1 line
No EOL
3.9 KiB
JavaScript
1 line
No EOL
3.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{212:function(e,t,n){"use strict";n.r(t);var a=n(0),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[n("h1",{attrs:{id:"puppet-forge"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#puppet-forge","aria-hidden":"true"}},[e._v("#")]),e._v(" Puppet Forge")]),e._v(" "),n("p",[e._v("We also publish this module on Puppet Forge. "),n("a",{attrs:{href:"https://forge.puppet.com/chassis/puppet_wp",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://forge.puppet.com/chassis/puppet_wp"),n("OutboundLink")],1)]),e._v(" "),n("h2",{attrs:{id:"requirements"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#requirements","aria-hidden":"true"}},[e._v("#")]),e._v(" Requirements")]),e._v(" "),n("p",[e._v("To publish the module on Puppet Forge you need to install the "),n("a",{attrs:{href:"https://puppet.com/docs/pdk/1.x/pdk.html",target:"_blank",rel:"noopener noreferrer"}},[e._v("Puppet Development Kit"),n("OutboundLink")],1)]),e._v(" "),n("h3",{attrs:{id:"installation-on-mac-os-x"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#installation-on-mac-os-x","aria-hidden":"true"}},[e._v("#")]),e._v(" Installation on Mac OS X")]),e._v(" "),n("p",[e._v("Run "),n("code",[e._v("brew cask install puppetlabs/puppet/pdk")]),e._v(".")]),e._v(" "),n("h3",{attrs:{id:"installation-on-linux"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#installation-on-linux","aria-hidden":"true"}},[e._v("#")]),e._v(" Installation on Linux")]),e._v(" "),n("p",[e._v("Refer to the installation instructions for your "),n("a",{attrs:{href:"https://puppet.com/docs/pdk/1.x/pdk_install.html#install-pdk-linux",target:"_blank",rel:"noopener noreferrer"}},[e._v("Linux distrobution"),n("OutboundLink")],1),e._v(".")]),e._v(" "),n("h3",{attrs:{id:"installation-on-windows"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#installation-on-windows","aria-hidden":"true"}},[e._v("#")]),e._v(" Installation on Windows")]),e._v(" "),n("p",[e._v("Download the "),n("a",{attrs:{href:"https://puppet.com/download-puppet-development-kit",target:"_blank",rel:"noopener noreferrer"}},[e._v("installation"),n("OutboundLink")],1),e._v(".")]),e._v(" "),n("h2",{attrs:{id:"publishing-the-module"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#publishing-the-module","aria-hidden":"true"}},[e._v("#")]),e._v(" Publishing the module")]),e._v(" "),n("p",[e._v("Open a terminal and run the following commands:")]),e._v(" "),n("ol",[n("li",[e._v("Run "),n("code",[e._v("pdk new module")]),e._v(" and answer the questions as follows:"),n("div",{staticClass:"language- extra-class"},[n("pre",{pre:!0,attrs:{class:"language-text"}},[n("code",[e._v("[Q 1/4] Summarize the purpose of this module in a single sentence.\nThis helps other Puppet users understand what the module does.\n--\x3e This modules manages your WordPress sites using WP-CLI, allowing you to install your site, manage plugins, themes, options and more.\n\n[Q 2/4] If there is a source code repository for this module, enter the URL here.\nSkip this if no repository exists yet. You can update this later in the metadata.json.\n--\x3e https://github.com/Chassis/puppet_wp/\n\n[Q 3/4] If there is a URL where others can learn more about this module, enter it here.\nOptional. You can update this later in the metadata.json.\n--\x3e https://chassis.github.io/puppet_wp/\n\n[Q 4/4] If there is a public issue tracker for this module, enter its URL here.\nOptional. You can update this later in the metadata.json.\n--\x3e https://github.com/Chassis/puppet_wp/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n")])])])]),e._v(" "),n("li",[e._v("Increment the version number in "),n("code",[e._v("puppet_wp/metadata.json")]),e._v(".")]),e._v(" "),n("li",[e._v("Run "),n("code",[e._v("pdk build")]),e._v(".")])])])}),[],!1,null,null,null);t.default=s.exports}}]); |