#!/usr/bin/python
#coding:utf8

__author__ = 'markshao'

from pagrant.basecommand import Command


class InitCommand(Command):
    name = "init"
    usage = """%prog """
    summary = "help init the environment for the test"

    def __init__(self):
        pass

    def setup_logging(self):
        pass

    def run(self, args):
        pass
@@ -50,16 +50,26 @@
 kshao'%0A%0A
+import os%0A
 from pag
@@ -101,16 +101,58 @@
 ommand%0A%0A
+PAGRANT_CONFIG_FILE_NAME = %22Pagrantfile%22%0A%0A
 %0Aclass I
@@ -344,32 +344,32 @@
 :%0A        pass%0A%0A
-
     def run(self
@@ -377,16 +377,376 @@
  args):%0A
+        pagrant_config_path = os.path.join(os.path.abspath(os.curdir), PAGRANT_CONFIG_FILE_NAME)%0A%0A        # check the config whether already existed%0A        if os.path.exists(pagrant_config_path):%0A            need_create_new = raw_input(%22The Pagrantfile is existed , keep it ? (yes/no)%22)%0A        else:%0A            pass%0A%0A    def _create_new_pagrant_file(self):%0A
         

save the code