예제 #1
0
        public static void Log()
        {
            _colorify.Clear();

            try
            {
                Vpn.Verification();

                CmdLog(_config.personal.webServer);
                Menu.Start();
            }
            catch (Exception Ex)
            {
                Exceptions.General(Ex);
            }
        }
예제 #2
0
파일: VPN.cs 프로젝트: bsrodriguezr/hardhat
 public static void Verification()
 {
     try
     {
         if (
             Variables.Valid("bv") &&
             !Vpn.CmdStatus(_config.vpn.siteName, Variables.Value("vpn"))
             )
         {
             Vpn.CmdDisconnect(Variables.Value("vpn"));
             Vpn.CmdConnect(_config.vpn.siteName, Variables.Value("vpn"));
             Message.Alert(" Please connect your VPN and try again.");
         }
     }
     catch (Exception Ex)
     {
         Exceptions.General(Ex);
     }
 }
예제 #3
0
        public static void Gradle()
        {
            _colorify.Clear();

            try
            {
                Vpn.Verification();

                string dirPath = _path.Combine(
                    _config.path.development,
                    _config.path.workspace,
                    _config.path.project,
                    _config.personal.selected.project,
                    _config.project.androidPath);
                CmdGradle(dirPath, _config.personal.menu.buildConfiguration);

                Menu.Start();
            }
            catch (Exception Ex)
            {
                Exceptions.General(Ex);
            }
        }