robo tize your local drupal 8 development
TRANSCRIPT
![Page 1: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/1.jpg)
Robo-tize Drupal Development
![Page 2: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/2.jpg)
Intros
Joe Stewart
Presenter Photo
@joevstewart
/in/joevstewart
https://www.drupal.org/u/joestewart
Has been participating in open source since 2000. Developing and supporting Drupal for over 10 years.
Had a great experience as the 2016 Drupalcon New Orleans DevOps Track Chair.
DevOps Lead
2
![Page 3: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/3.jpg)
About
3
Mediacurrent helps organizations build highly impactful, elegantly designed Drupal websites that achieve the strategic results they need.
● Single-source provider● Specializing in Drupal since 2007● Headquartered in Atlanta, GA● Team of 60+ Drupal Experts including
development, design and strategy● Clients include: Large Enterprise and
high-profile global brands
![Page 4: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/4.jpg)
4
Interior Page (/w large graphic)
robo.li
![Page 5: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/5.jpg)
5
● git● phpunit● ssh/rsync● File manipulation● Shell execution● Much more
Included Tasks
![Page 6: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/6.jpg)
6
● OOP PHP● Composer dependency● PSR-4: Autoloader● Logger● Annotated Commands
Features
![Page 7: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/7.jpg)
7
● Drupal site installation● Drush site-install command● boedah/robo-drush from Packagist● Robo structure● Create task
Outline
![Page 8: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/8.jpg)
8
Using Drush
● Flexible options
Site Install
![Page 9: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/9.jpg)
9
Using Robo
● Same options
Site Install
![Page 10: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/10.jpg)
10
Comparison
Site Install
![Page 11: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/11.jpg)
11
Using Robo
● Command shown● Elapsed time shown
Site Install
![Page 12: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/12.jpg)
12
● RoboFile extends Robo Tasks● loadTasks trait● Methods are commands
RoboFile.php
![Page 13: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/13.jpg)
13
● camelCase() is camel:case command● Chained methods● Options array● Method header● “Stack” Tasks
Robo conventions
![Page 14: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/14.jpg)
14
Help Output
![Page 15: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/15.jpg)
15
Help Output
![Page 16: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/16.jpg)
16
Help Output
![Page 17: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/17.jpg)
17
Help Output
![Page 18: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/18.jpg)
18
Tasks● src/loadTasks - trait● Task names follow PSR4
Robo Structure
![Page 19: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/19.jpg)
19
Site Install Task
![Page 20: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/20.jpg)
20
● Returns Result object● Options use variables
Site Install Task
![Page 21: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/21.jpg)
21
● PHP● PSR4 Autoloader● Extendable● Reusable
Robo Benefits
● Error handling● Logger● Create our own library● Assemble steps together● Drush 9
![Page 22: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/22.jpg)
22
● PSR4 Autoloader
Benefits
![Page 23: Robo tize your local drupal 8 development](https://reader031.vdocument.in/reader031/viewer/2022030309/58f1f9921a28abe56b8b4597/html5/thumbnails/23.jpg)
@Mediacurrent Mediacurrent.com
Thank you!
slideshare.net/mediacurrent