Beispiel #1
0
 public async void InitWithBoxNameAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Init;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("init {0}", boxName));
 }
Beispiel #2
0
 public async void ListBoxAsync(string vagrantFilePath)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box list"));
 }
Beispiel #3
0
 public async void RemoveBoxAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box remove {0}", boxName));
 }
Beispiel #4
0
        public async void ExecuteVagrantCommandAsync(string vagrantFilePath, VagrantCommand command)
        {
            CurrentCommand = command;

            await StartVagrantProcessAsync(vagrantFilePath, ToCommandString(command));
        }
Beispiel #5
0
 public async void AddBoxAsync(string vagrantFilePath, string boxName, string boxUri)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box add {0} {1}", boxName, boxUri));
 }
Beispiel #6
0
        public async void ExecuteVagrantCommandAsync(string vagrantFilePath, VagrantCommand command)
        {
            CurrentCommand = command;

            await StartVagrantProcessAsync(vagrantFilePath, ToCommandString(command));
        }
Beispiel #7
0
 public static string ToCommandString(VagrantCommand command)
 {
     return(command.ToString().ToLower() + (command == VagrantCommand.Destroy ? " -f" : ""));
 }
Beispiel #8
0
 public static string ToCommandString(VagrantCommand command)
 {
     return command.ToString().ToLower() + (command == VagrantCommand.Destroy ? " -f" : "");
 }
Beispiel #9
0
 public async void InitWithBoxNameAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Init;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("init {0}", boxName));
 }
Beispiel #10
0
 public async void RemoveBoxAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box remove {0}",boxName));
 }
Beispiel #11
0
 public async void ListBoxAsync(string vagrantFilePath)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box list"));
 }
Beispiel #12
0
 public async void AddBoxAsync(string vagrantFilePath, string boxName, string boxUri)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box add {0} {1}", boxName, boxUri));
 }