joestewart/robo-drupalvm

Drupal VM tasks Robo Task Runner

Installs: 96 007

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:robo-tasks

2.1.2 2024-08-07 19:19 UTC

README

Drupal VM tasks for Robo Task Runner

Build Status SensioLabsInsight

This package provides Robo tasks for the following:

 vm:init - Optionally populates the delegating Vagrantfile and/or config/config.yml.

##Installation

composer require joestewart/robo-drupalvm

##Usage

<?php

class RoboFile extends \Robo\Tasks
{

    use \JoeStewart\RoboDrupalVM\Task\loadTasks;
    
    ...
    
?>

##Example

    public function vmInit()
    {
        $result = $this->taskVmInit()
            ->configFile()
            ->vagrantFile()
            ->run();
        return $result;
    }

Predefined Commands

<?php

class RoboFile extends \Robo\Tasks
{

    use \JoeStewart\RoboDrupalVM\Task\loadTasks;
    use \JoeStewart\RoboDrupalVM\Command\Vm;
    
    ...
    
?>

Now list the avaliable commands using

./vendor/bin/robo list

##Credit

Thanks to Robo.li, greg-1-anderson and boedah for example robo code.