/**
  * The brains of the command
  *
  * @access public
  * @return void
  * @author Aziz Light
  **/
 public function run()
 {
     $codeigniter_sample_project_path = BASE_PATH . DIRECTORY_SEPARATOR . 'codeigniter';
     if (is_dir($codeigniter_sample_project_path)) {
         ApplicationHelpers::delete_dir($codeigniter_sample_project_path);
     }
     fwrite(STDOUT, 'Bootstrapping Fire...' . PHP_EOL);
     if (GithubHelpers::git_clone($this->get_github_repo_link(), $codeigniter_sample_project_path) === FALSE) {
         throw new RuntimeException("Unable to clone the sample CodeIgniter project from Github");
     } else {
         if (php_uname("s") === "Windows NT") {
             $message = "\tFire Bootstrapped" . PHP_EOL;
         } else {
             $message = "\t" . ApplicationHelpers::colorize('Fire', 'green') . '  Bootstrapped' . PHP_EOL;
         }
         fwrite(STDOUT, $message);
     }
 }
 /**
  * The brains of the command
  *
  * @access public
  * @return void
  * @author Aziz Light
  **/
 public function run()
 {
     if ($this->is_fire_bootstrapped() && $this->force_clone === FALSE) {
         if ($this->copy_codeigniter_sample_project($this->location, BASE_PATH . DIRECTORY_SEPARATOR . 'codeigniter')) {
             if (php_uname("s") !== "Windows NT") {
                 $message = "\t" . ApplicationHelpers::colorize('CodeIgniter project created', 'green') . ' ' . $this->name . PHP_EOL;
             } else {
                 $message = "\tCodeIgniter project created " . $this->name . PHP_EOL;
             }
             fwrite(STDOUT, $message);
         } else {
             throw new RuntimeException("Unable to create a new CodeIgniter Project");
         }
     } else {
         fwrite(STDOUT, 'Cloning CodeIgniter...' . PHP_EOL);
         // First let's download CodeIgniter
         if (GithubHelpers::git_clone($this->repo, $this->location, $this->tag_or_branch) === FALSE) {
             throw new RuntimeException("Unable to clone CodeIgniter from Github");
         } else {
             if (php_uname("s") !== "Windows NT") {
                 $message = "\t" . ApplicationHelpers::colorize('CodeIgniter project created', 'green') . ' ' . $this->name . PHP_EOL;
             } else {
                 $message = "\tCodeIgniter project created " . $this->name . PHP_EOL;
             }
             fwrite(STDOUT, $message);
         }
     }
 }