Skip to content

Commit

Permalink
ChefStyle more
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Nov 13, 2023
1 parent 969eaf2 commit 8a18bc5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/kitchen/docker/helpers/dockerfile_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require 'kitchen'
require 'kitchen/configurable'
require "kitchen"
require "kitchen/configurable"

module Kitchen
module Docker
module Helpers
module DockerfileHelper
module DockerfileHelper
include Configurable

def dockerfile_platform
case config[:platform]
when 'arch'
when "arch"
arch_platform
when 'debian', 'ubuntu'
when "debian", "ubuntu"
debian_platform
when 'fedora'
when "fedora"
fedora_platform
when 'gentoo'
when "gentoo"
gentoo_platform
when 'gentoo-paludis'
when "gentoo-paludis"
gentoo_paludis_platform
when 'opensuse/tumbleweed', 'opensuse/leap', 'opensuse', 'sles'
when "opensuse/tumbleweed", "opensuse/leap", "opensuse", "sles"
opensuse_platform
when 'rhel', 'centos', 'oraclelinux', 'amazonlinux'
when "rhel", "centos", "oraclelinux", "amazonlinux"
rhel_platform
when 'centosstream'
when "centosstream"
centosstream_platform
when 'almalinux'
when "almalinux"
almalinux_platform
when 'rockylinux'
when "rockylinux"
rockylinux_platform
when 'photon'
when "photon"
photonos_platform
else
raise ActionFailed, "Unknown platform '#{config[:platform]}'"
Expand Down

0 comments on commit 8a18bc5

Please sign in to comment.