123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?php
- /**
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.5
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2013 Fuel Development Team
- * @link http://fuelphp.com
- */
- namespace Fuel\Tasks;
- /**
- * Robot example task
- *
- * Ruthlessly stolen from the beareded Canadian sexy symbol:
- *
- * Derek Allard: http://derekallard.com/
- *
- * @package Fuel
- * @version 1.0
- * @author Phil Sturgeon
- */
- class Robots
- {
- /**
- * This method gets ran when a valid method name is not used in the command.
- *
- * Usage (from command line):
- *
- * php oil r robots
- *
- * or
- *
- * php oil r robots "Kill all Mice"
- *
- * @return string
- */
- public static function run($speech = null)
- {
- if ( ! isset($speech))
- {
- $speech = 'KILL ALL HUMANS!';
- }
- $eye = \Cli::color("*", 'red');
- return \Cli::color("
- \"{$speech}\"
- _____ /
- /_____\\", 'blue')."\n"
- .\Cli::color(" ____[\\", 'blue').$eye.\Cli::color('---', 'blue').$eye.\Cli::color('/]____', 'blue')."\n"
- .\Cli::color(" /\\ #\\ \\_____/ /# /\\
- / \\# \\_.---._/ #/ \\
- / /|\\ | | /|\\ \\
- /___/ | | | | | | \\___\\
- | | | | |---| | | | |
- |__| \\_| |_#_| |_/ |__|
- //\\\\ <\\ _//^\\\\_ /> //\\\\
- \\||/ |\\//// \\\\\\\\/| \\||/
- | | | |
- |---| |---|
- |---| |---|
- | | | |
- |___| |___|
- / \\ / \\
- |_____| |_____|
- |HHHHH| |HHHHH|", 'blue');
- }
- /**
- * An example method that is here just to show the various uses of tasks.
- *
- * Usage (from command line):
- *
- * php oil r robots:protect
- *
- * @return string
- */
- public static function protect()
- {
- $eye = \Cli::color("*", 'green');
- return \Cli::color("
- \"PROTECT ALL HUMANS\"
- _____ /
- /_____\\", 'blue')."\n"
- .\Cli::color(" ____[\\", 'blue').$eye.\Cli::color('---', 'blue').$eye.\Cli::color('/]____', 'blue')."\n"
- .\Cli::color(" /\\ #\\ \\_____/ /# /\\
- / \\# \\_.---._/ #/ \\
- / /|\\ | | /|\\ \\
- /___/ | | | | | | \\___\\
- | | | | |---| | | | |
- |__| \\_| |_#_| |_/ |__|
- //\\\\ <\\ _//^\\\\_ /> //\\\\
- \\||/ |\\//// \\\\\\\\/| \\||/
- | | | |
- |---| |---|
- |---| |---|
- | | | |
- |___| |___|
- / \\ / \\
- |_____| |_____|
- |HHHHH| |HHHHH|", 'blue');
- }
- }
- /* End of file tasks/robots.php */
|