Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Deployer custom Options

task('foo:bar', function() {
    // For arguments
    $stage = null;
    if (input()->hasArgument('stage')) {
        $stage = input()->getArgument('stage');
    }
    
    // For option
    $tag = null;
    if (input()->hasOption('tag')) {
        $tag = input()->getOption('tag');
    }
});
Source by deployer.org #
 
PREVIOUS NEXT
Tagged: #Deployer #custom #Options
ADD COMMENT
Topic
Name
9+1 =