我正在努力实现清单中定义的步骤的“从上到下”执行。
define ui_deploy::ui_deploy_manifest( $deploy_params, $params ) {
$version = $deploy_params['version']
$install_dir = $deploy_params['install_dir']
file { "$install_dir/unzip-ui.ps1":
ensure => present,
content => template('ui_deploy/unzip.erb')
}
exec { "unzip_ui":
path => 'C:\Windows\System32\WindowsPowerShell\v1.0',
command => "powershell -executionpolicy remotesigned -file ${install_dir}/unzip-ui.ps1",
require => File["$install_dir/unzip-ui.ps1"],
logoutput => true
}
file { "thirdparties":
path => 'D:\teamdeploy_install_dir\ui',
source => 'D:\teamdeploy_install_dir\thirdp',
recurse => true,
require => [
Exec["unzip_ui"],
Anchor["after-com.team.project.project-thirdparty"],
]
}
file { "$install_dir/msbuild.bat":
ensure => present,
content => template('ui_deploy/msbuild.erb'),
require => File["thirdparties"]
}
exec { "run_msbuild":
command => "cmd.exe /c ${install_dir}\\msbuild.bat",
path => $path,
require => File["$install_dir/msbuild.bat"],
logoutput => true
}}
在清单解析期间,它失败并带有
Puppet(错误):无法应用完整目录:找到1个依赖循环: (exec [unzip_ui] =>文件[thirdparties] =>文件[D:\ teamdeploy_install_dir \ ui / unzip-ui.ps1] =>执行[unzip_ui])
我真的无法理解这里的循环在哪里。从我的角度来看,它是依赖链而不是循环。请告诉我这里我错了。 我也尝试在'之前'语句中重写它,但结果是一样的。
答案 0 :(得分:0)
重写var something = (function($) {
this.isViewportInMobile(mobileWidthOverride) {
var widthToCheckAgainst = mobileWidthOverride || 768;
return window.innerWidth < widthToCheckAgainst;
};
return this;
})(jQuery);
语句解决了这个问题。