cmd task can run adhoc commands in variety of resources. Following are the attributes of the
value: This is value of the command that will be executed.
target: It's an optional value, which expects the alias of one of the supported resources. The supported resources are only remote hosts, i.e.
resources.yml- cmd:value: <command to be executed>target: Optional - <alias of resource>
demo.flow.ymlproject: Demoresources: /path/to/resources.ymlstages:- cmd_demo:- cmd:value: echo "Hello world"target: remote
The corresponding resource definition for the remote server is as follows.
resources.ymlresources:- server:alias: remotehost: xx.xx.xx.xxxusername: gigakeyFile: /path/to/keyFile.pem
If the launch configuration
demo.launch.yml is stored in the current working directory, then you can run the launch command as below.
$ teraflow demo
Else, you need to specify the path of the launch configuration.
$ teraflow -c /path/to/demo.launch.yml