Exemple #1
0
 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)
Exemple #2
0
 def init(self, request):
     pod = self.get_pod_from_request(request)
     commands.init(pod, None)
Exemple #3
0
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)
Exemple #4
0
 def init(self, request):
   pod = self.get_pod_from_request(request)
   commands.init(pod, None)