DM Script

Writing custom plug-ins and actions using DMScript.

Intro to Customizing Actions with DMScript

Customize any Action using Built-in Functions and Procedures with DMScript.

Working with Objects

Working with Objects using DMScript.

Abort

Using abort to end a script execution.

Append

Append one path to another.

Appendstd

Append one path to another with directory sperators.

Assert

Assert compares two strings, objects or expressions.

Attachment

Add an attachement to your email via SMTP Notifiers.

AVLoop

Create an Application Version Loop between any two versions on the Stack.

base64decode

Convert a string of base64 encoded data into a stream.

base64encode

Perform operations on a stream of data.

basename

Get the base file name of a specified directory path.

Break/Continue

Break out of a loop or restart a loop.

Change Request

Get a Change Request (issue).

Check Out

Get files from a specified repository.

CompLoop

Creats a Component Loop through all Components of an Application.

Component Item Object

Get an array of Component Items for the Component.

Conditionals

Use Conditional Expressions to evaluate true or false.

Create and Read

Create or Read a new file in the DropZone.

Credentials

Get Credentials.

Date

Contructs and returns a Date from the given values.

Date Object

Format a Date Object from the given values.

Decimal

Convert any value into an integer.

Delete

Remove a file or a directory from the DropZone.

Deploy Statement

Check out and transfer files to and Endpoint.

Directory Name

Get the directory name from a full directory path.

Domain Object

Get a Domain Object.

DropZone Physicl Path

Get the DropZone physical path.

DropZone File Object

Get the DropZone File Object.

DropZone Object

Get the DropZone Object.

Echo

Echo an expression.

Eval

Evaluate a block of code.

Filter

Get a subset of an array.

Flatten

Get a string representing all values in an array.

For Each Statement

Use a generic iterator for string tokenization.

Get Application

Get the Application object based on Application Name.

Get Components

Get a Component object based on the Component Name.

Get Credentials

Get a Credential object based on the Credential Name.

Get Environment

Get an Environment object based on the Environment Name.

Get Hex

Convert a value to an integer.

Get Server

Gets an Endpoint object based on an Endpoint Name.

Get User

Gets a User object based on a User Name.

Get UserGroup

Gets a UserGroup object based on a UserGroup Name.

Increment or Decrement

Increment or decrement by 1.

Instr

Search a string looking for the first instance of the specified string.

Iterate

Loop through a list of Objects.

Length

Get the length of the associated object.

Lower

Convert to lowercase.

Me

Get the User Object based on the logged in User.

Modify

Change a file in the DropZone.

Notify

Send a message using a Notifier object.

Now

Get the current data and time.

Octal

Convert any value into an octal representation.

Parallel

Execute each statement within a block simultaneously.

PSLoop

Create an Endpoint Loop.

Query

Run a query against a Data Source Object.

Random

Generate a random number.

Regsub

Convert a value to a string and replace all occurrences.

Remote Script

Execute a script on each remote Endpoint.

Rename

Change a file name in the DropZone.

RESTful Get

Retrieve data from an external RESTful API.

RESTful Post

Pass data to an external RESTFul API.

RTrim

Turn the given value into a String and remove any trailing whitespace.

SetAtt

Assings or replaces attributes for a specified object.

Set Statement

Assign a variable or array element to a value.

Sleep

Pause a DMScript execution.

Soap

Make a call to an external Soap-based API.

Split

Take a source string and split it into substrings.

Stack

Manage the DeployHub Pro Stack.

Stdpath

Get a host path converted into a standard format.

Substr

Converts the given value into a string.

Sum

Interate through each arry element.

Switch/Case/Default

Evaluate a conditional expression and compare for a match.

To Json

Get a String representing the contents of the array in JSON notation.

To Json

Push files in the current DropZone to all Endpoints.

Try Catch Finally

Execute a catch.

Upper

Convert to uppercase.

UserGroup

Retrieve a UserGroup Object.

User

Retrieve a User Object.

Using

Manipulate the context or the stack for the statements body.

Wait For

Suspend a script execution.

While Loops

Repeatedly execute a condition.

XML Parse

Parse an XML String.

Xpath Notation

Identify the elements to change in an XML document.

Zip Add

Add a file or group of files into a zip archive for the current DropZone.

Zip Delete

Delete a file or group of files from a zip archive for the current DropZone.

Zip Get

Get a file or group of files from a zip archive for the current DropZone.