public override void Run(Node node, NodeAuth auth) { if (node == null) throw new ArgumentNullException ("node"); if (auth == null) throw new ArgumentNullException ("auth"); if (node.PublicIPs.Count < 1) throw new ArgumentException ("node", "No public IPs available on node."); string host = node.PublicIPs [0].ToString (); CopyScript (host, auth); SshExec exec = new SshExec (host, auth.UserName); }
public abstract bool RebootNode(Node node);
public abstract void Run(Node node, NodeAuth auth);
public abstract bool DestroyNode(Node node);
public override void Run(Node node, NodeAuth auth) { foreach (Deployment d in Steps) { d.Run (node, auth); } }
/// <summary> /// Destroy the node, once a node is destroyed it is no longer usable and can not be recreated. /// </summary> public abstract void DestroyNode(Node node);
/// <summary> /// Get updated information on the specified node from the cloud provider. /// You would use this method to check to see if a node has changed its state. /// </summary> public abstract void UpdateNode(Node node);
/// <summary> /// Reboot the node. /// </summary> public abstract void RebootNode(Node node);