Skip to content

Ideato automation and deploy tool - ALPHA release - things can catch fire in any moment!

Notifications You must be signed in to change notification settings

danielsan80/Idephix

 
 

Repository files navigation

Idephix - Automation and Deploy tool

Idephix is a PHP tool for building automated scripts

Build Status

Installation / Usage

  1. Download the idephix.phar executable.

    $ curl http://getidephix.com/idephix.phar > idephix.phar
  2. Create a idxfile.php in the root directory of you project. Define your tasks.

    <?php
    
    use Idephix\Idephix;
    
    $targets = array(
        'test' => array(
            'hosts' => array('127.0.0.1'),
            'ssh_params' => array('user' => 'kea')
        ),
    );
    
    $idx = new Idephix($targets);
    
    $idx->
        /**
         * Execute the touch of a file specified in input
         * @param string $name the name of the file to be touch-ed
         * @param bool   $go   if not specified the script execute a dry-run
         */
        add('idephix:test-params',
           function ($name, $go = false) use ($idx) {
             $idx->local('touch /tmp/'.$name);
             $idx->remote('touch /tmp/'.$name.'_remote');
           });
    
    $idx->run();
  3. Run Idephix: php idephix.phar --env=test idephix:test-params Nome_file

Global installation of Idephix

You can choose to install idephix wherever you prefer. Idephix use the configuration file in the current path.

  1. Go to a PATH directory, e.g. cd /usr/local/bin
  2. Get Idephix:curl http://getidephix.com/idephix.phar > idephix.phar
  3. Make the phar executable chmod a+x idephix.phar
  4. Go to a project directory, e.g. cd /path/to/my/project
  5. Define your tasks in the idxfile.php file
  6. Just invoke the binary idephix.phar
  7. You can optionally rename the idephix.phar to idx to make it easy to use

Requirements

PHP 5.3.2 or above, >=5.3.12 recommended

Authors

License

Idephix is licensed under the MIT License - see the LICENSE file for details

Bitdeli Badge

About

Ideato automation and deploy tool - ALPHA release - things can catch fire in any moment!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%