From 8abd1ba3aa023c3da05917a33cd3ca2c590b9b21 Mon Sep 17 00:00:00 2001 From: Georgy Okrokvertskhov Date: Wed, 20 Feb 2013 11:05:46 -0800 Subject: [PATCH] Added operations for chef. They might be remove if we decide to not use chef. --- windc/windc/core/commands.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/windc/windc/core/commands.py b/windc/windc/core/commands.py index 089ec27..86473c1 100644 --- a/windc/windc/core/commands.py +++ b/windc/windc/core/commands.py @@ -17,6 +17,10 @@ TEMPLATE_DEPLOYMENT_COMMAND = "Template" CHEF_COMMAND = "Chef" +CHEF_OP_CREATE_ENV = "Env" +CHEF_OP_CREATE_ROLE = "Role" +CHEF_OP_ASSIGN_ROLE = "AssignRole" +CHEF_OP_CREATE_NODE = "CRNode" class Command: type = "Empty" @@ -25,9 +29,15 @@ class Command: def __init__(self): self.type = "Empty" self.context = None + self.data = None def __init__(self, type, context): self.type = type self.context = context + def __init__(self, type, context, data): + self.type = type + self.context = context + self.data = data +