一个小傀儡问题
我正在创建一个这样的作曲家项目。
composer::project { 'project-test':
ensure => 'latest', #or installed?
target => '/home/test/www',
dev => false,
require => Package ['php', 'apache']
}
然后从执行官那里,我想将其作为资源。我该怎么做?
执行示例:
exec { 'generate-tests' :
command => 'php tests.php',
path => '/usr/bin/',
cwd => "/home/test/www/bin",
logoutput => 'true',
#require => composer::project['project-test']
}
由于您需要的是资源,因此应按如下方式大写:
require => Composer::Project['project-test']