def Run(self, argv): if len(argv) != 3: raise Exception("Usage: grow init <repo> <pod root>") root = os.path.abspath(os.path.join(os.getcwd(), argv[-1])) theme_url = argv[-2] pod = pods.Pod(root, storage=storage.FileStorage) pod_commands.init(pod, theme_url)
def init(self, request): pod = self.get_pod_from_request(request) commands.init(pod, None)
def init(theme, pod_path, force): """Initializes a pod with a theme.""" root = os.path.abspath(os.path.join(os.getcwd(), pod_path)) pod = pods.Pod(root, storage=storage.FileStorage) commands.init(pod, theme, force=force)