mirror of
https://github.com/kennethreitz-archive/terrapyn.git
synced 2026-06-05 07:06:15 +00:00
rename
This commit is contained in:
@@ -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
@@ -1 +1 @@
|
||||
from .terraform import TerraformInstance
|
||||
from .terraform import Terraform
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user