lib/puppet_x/chocolatey/chocolatey_common.rb
## determines if C# version of choco
determines if C# version of choco
determines if C# version of choco
def choco_config_file
        chocoInstallPath = PuppetX::Chocolatey::ChocolateyInstall.install_path
        choco_config = "#{chocoInstallPath}\\config\\chocolatey.config"
        choco_run_ensure_config = choco_version
        return choco_config if file_exists?(choco_config)
        old_choco_config = "#{chocoInstallPath}\\chocolateyinstall\\chocolatey.config"
        return old_choco_config if file_exists?(old_choco_config)
        return nil
      end
def choco_config_file chocoInstallPath = PuppetX :: Chocolatey :: ChocolateyInstall . install_path choco_config = "#{chocoInstallPath}\\config\\chocolatey.config" choco_run_ensure_config = choco_version return choco_config if file_exists? ( choco_config ) old_choco_config = "#{chocoInstallPath}\\chocolateyinstall\\chocolatey.config" return old_choco_config if file_exists? ( old_choco_config ) return nil end
determines if C# version of choco
determines if C# version of choco
# choco may be installed, but a config file doesn't exist until the # first run of choco - trigger that by checking the version