Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/deploy/requirements.py
blob: 5a0a59532de8a2a0180ab9178fae937e0a338d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class EasyRequirement(object):

    def is_satified_in(self, env):
        return True


class HardRequirement(object):

    def is_satified_in(self, env):
        return False


class NginxRequirement(object):

    def __init__(self, remote_run):
        self.remote_run = remote_run

    def is_satisfied_in(self, env):
        cmd = ""
        output = self.remote_run(cmd)
        return True if output.succeeded else False