Skip to content

Commit

Permalink
Use the NixOps class interface from NixOS/nixops#1383
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jul 8, 2020
1 parent 0853724 commit 239b886
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions nixops_aws/plugin.py
@@ -1,16 +1,23 @@
import os.path
import nixops.plugins
from nixops.plugins import Plugin


@nixops.plugins.hookimpl
def nixexprs():
return [os.path.dirname(os.path.abspath(__file__)) + "/nix"]
class NixopsAWSPlugin(Plugin):

@staticmethod
def nixexprs():
return [os.path.dirname(os.path.abspath(__file__)) + "/nix"]

@staticmethod
def load():
return [
"nixops_aws.resources",
"nixops_aws.backends.ec2",
"nixops_aws.resources.ec2_keypair",
]


@nixops.plugins.hookimpl
def load():
return [
"nixops_aws.resources",
"nixops_aws.backends.ec2",
"nixops_aws.resources.ec2_keypair",
]
def plugin():
return NixopsAWSPlugin()

0 comments on commit 239b886

Please sign in to comment.