Package com.pulumi.automation
Interface PulumiCommand
- All Known Implementing Classes:
LocalPulumiCommand
public interface PulumiCommand
A Pulumi command.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CommandResultRuns the Pulumi command with default options.run(List<String> args, CommandRunOptions options) Runs the Pulumi command.version()The version of the Pulumi CLI that is being used.
-
Method Details
-
version
The version of the Pulumi CLI that is being used.- Returns:
- the version of the Pulumi CLI or
null
-
run
Runs the Pulumi command.- Parameters:
args- the arguments to pass to the commandoptions- the options for running the command- Returns:
- the command result
- Throws:
AutomationException- if the command fails
-
run
Runs the Pulumi command with default options.- Parameters:
args- the arguments to pass to the command- Returns:
- the command result
- Throws:
AutomationException- if the command fails
-