示例#1
0
 public static function single($name, $ip, AuthMethod $authMethod)
 {
     $inventory = new Inventory();
     $inventory->addHost($name, $ip, $authMethod);
     return $inventory;
 }
示例#2
0
 public static function single($name, $ip, AuthMethod $authMethod, $group = 'default')
 {
     $inventory = new Inventory();
     $inventory->addHost($name, $ip, $authMethod, $group);
     return $inventory;
 }