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

            await StartVagrantProcessAsync(vagrantFilePath, ToCommandString(command));
        }
Esempio n. 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));
 }
Esempio n. 6
0
        public async void ExecuteVagrantCommandAsync(string vagrantFilePath, VagrantCommand command)
        {
            CurrentCommand = command;

            await StartVagrantProcessAsync(vagrantFilePath, ToCommandString(command));
        }
Esempio n. 7
0
 public static string ToCommandString(VagrantCommand command)
 {
     return(command.ToString().ToLower() + (command == VagrantCommand.Destroy ? " -f" : ""));
 }
Esempio n. 8
0
 public static string ToCommandString(VagrantCommand command)
 {
     return command.ToString().ToLower() + (command == VagrantCommand.Destroy ? " -f" : "");
 }
Esempio n. 9
0
 public async void InitWithBoxNameAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Init;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("init {0}", boxName));
 }
Esempio n. 10
0
 public async void RemoveBoxAsync(string vagrantFilePath, string boxName)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box remove {0}",boxName));
 }
Esempio n. 11
0
 public async void ListBoxAsync(string vagrantFilePath)
 {
     CurrentCommand = VagrantCommand.Box;
     await StartVagrantProcessAsync(vagrantFilePath, string.Format("box list"));
 }
Esempio n. 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));
 }