Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of multiple values in host label
- example of usage: host('prod.example.org') ->set('hostname', 'example.cloud.google.com'); ->setLabel( 'state' => 'prod' 'role' => ['build','web','redis'] ]); host('prod-db.example.org') ->set('hostname', 'example.cloud.google.com'); ->setLabel( 'state' => 'prod' 'role' => ['db'] ]); host('qa.example.org') ->set('hostname', 'example.cloud.google.com'); ->setLabel( 'state' => 'qa' 'role' => ['build','web','redis','db'] ]); host('dev.example.org') ->set('hostname', 'example.cloud.google.com'); ->setLabel( 'state' => 'qa' 'role' => ['build','web','redis','db'] ]); ... desc('Clear pagespeed'); task('pagespeed:clear', function () { run("rm -rf {{deploy_path}}/{{pagespeed_path}}* || true"); })->select('stage=prod|qa & role=web'); // assuming pagespeed is installed only on prod and qa envs
- Loading branch information