Edit

IABSD.fr/ports/sysutils/ruby-pdk/patches/patch-lib_pdk_cli_exec_rb

Branch :

  • Show log

    Commit

  • Author : sebastia
    Date : 2024-05-28 20:37:01
    Hash : e5306d04
    Message : import sysutils/ruby-pdk A CLI to facilitate easy, unified development workflows for Puppet modules. The Puppet Development Kit (PDK) includes key Puppet code development and testing tools for Linux, Windows, and OS X workstations, so you can install one package with the tools you need to create and validate new modules. PDK includes testing tools, a complete module skeleton, and command line tools to help you create, validate, and run tests on Puppet modules. PDK also includes all dependencies needed for its use. Feedback and OK jeremy@

  • sysutils/ruby-pdk/patches/patch-lib_pdk_cli_exec_rb
  • Index: lib/pdk/cli/exec.rb
    --- lib/pdk/cli/exec.rb.orig
    +++ lib/pdk/cli/exec.rb
    @@ -39,7 +39,7 @@ module PDK
           end
     
           def self.bundle(*args)
    -        ensure_bin_present!(bundle_bin, 'bundler')
    +        ensure_bin_present!(bundle_bin, 'bundler${GEM_BIN_SUFFIX}')
     
             execute(bundle_bin, *args)
           end
    @@ -47,7 +47,7 @@ module PDK
           def self.bundle_bin
             require 'pdk/util/ruby_version'
     
    -        bundle_bin = Gem.win_platform? ? 'bundle.bat' : 'bundle'
    +        bundle_bin = Gem.win_platform? ? 'bundle.bat' : 'bundle${GEM_BIN_SUFFIX}'
             vendored_bin_path = File.join('private', 'ruby', PDK::Util::RubyVersion.active_ruby_version, 'bin', bundle_bin)
     
             try_vendored_bin(vendored_bin_path, bundle_bin)