This commit is contained in:
2018-09-17 04:44:26 -04:00
parent 09a0861eee
commit 94dd3199b8
3 changed files with 16 additions and 2 deletions
+14
View File
@@ -1,3 +1,17 @@
# Terrapyn: Orchestrate Terraform with Python
Work in progress. Passion project.
## Usage
>>> from terrapyn import Terraform
>>> tf = Terraform()
>>> tf
<TerraformCommand version='0.11.8'>
>>> tf.working_dir
WindowsPath('C:/Users/me/AppData/Local/Temp/terrapyn-p2p9iy63-terraform-plan')
The rest is a work in progress :)
+1 -1
View File
@@ -1 +1 @@
from .terraform import TerraformInstance
from .terraform import Terraform
+1 -1
View File
@@ -32,7 +32,7 @@ class BaseCommand:
return (c.out.strip() or c.err.strip()).split("\n")
class TerraformInstance(BaseCommand):
class Terraform(BaseCommand):
def __init__(self, *, working_dir=None, environ=None):
self.environ = environment.evaluate(environ=environ)
self._version = None