Ejemplo n.º 1
0
 public function run(array $arguments)
 {
     Terminal::info("Installed packages:\n");
     foreach ($this->deps->getPackages() as $package) {
         Terminal::bold('* ' . $package->getName() . "\n");
     }
 }
Ejemplo n.º 2
0
 public function run(array $arguments)
 {
     $json = $this->deps->nearestJson();
     $package = new Package(dirname($json));
     $porcelain = count($arguments) && $arguments[0] == 'porcelain';
     if (!$porcelain) {
         Terminal::info("From {$json}\n\n");
         Terminal::bold("* project name: " . $package->getName() . "\n");
     }
     $dependencies = $package->getDependencies();
     if ($porcelain) {
         echo implode(':', $dependencies) . "\n";
     } else {
         if ($dependencies) {
             Terminal::bold("* dependencies:\n");
             foreach ($dependencies as $dep) {
                 echo "  - {$dep} ";
                 if ($this->deps->hasPackage($dep)) {
                     Terminal::success("(installed)");
                 } else {
                     Terminal::warning("(not installed)");
                 }
                 echo "\n";
             }
         } else {
             Terminal::bold("* no dependencies\n");
         }
     }
 }
Ejemplo n.º 3
0
 public function run(array $arguments)
 {
     Terminal::info("Installed packages:\n");
     foreach ($this->deps->getPackages() as $package) {
         $this->printStatus($package);
     }
 }
Ejemplo n.º 4
0
 public function run(array $arguments)
 {
     $remotes = $this->deps->getRemotes();
     $current = $remotes->getCurrent();
     Terminal::info("Remotes:\n");
     foreach ($remotes->getRemotes() as $remote => $addr) {
         if ($remote == $current) {
             Terminal::success("* {$remote} ({$addr})\n");
         } else {
             Terminal::bold("* {$remote} ({$addr})\n");
         }
     }
 }
Ejemplo n.º 5
0
Archivo: Deps.php Proyecto: Rhoban/deps
 public function build($dep)
 {
     $this->updateEnv();
     Terminal::info("* Building {$dep}...\n");
     if ($this->hasPackage($dep)) {
         $package = $this->getPackage($dep);
         $package->build();
     } else {
         throw new \Exception("Unable to build not existing package {$dep}");
     }
 }
Ejemplo n.º 6
0
 public function run(array $arguments)
 {
     Terminal::info("* Updating deps from git...\n");
     $dir = $this->deps->getDirectory();
     OS::run("cd {$dir}; git pull");
 }
Ejemplo n.º 7
0
 public function run(array $arguments)
 {
     Terminal::info("Reloading pathes\n");
     return true;
 }