intecture-api 0.3.2

API component for Intecture infrastructure. Intecture is the developer friendly, multi-lingual configuration management tool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test creating a Service with multiple Runnables
--FILE--
<?php

use Intecture\Service;
use Intecture\ServiceRunnable;

$runnables = array(
    'status' => new ServiceRunnable('/path/to/cmd', ServiceRunnable::COMMAND),
    '_' => new ServiceRunnable('mysvc', ServiceRunnable::SERVICE)
);
$service = new Service($runnables);
var_dump($service);

--EXPECT--
object(Intecture\Service)#3 (0) {
}