forked from htrgouvea/nipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nipe.pl
executable file
·52 lines (42 loc) · 1.12 KB
/
nipe.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/perl
#########################################################
# Nipe developed by Heitor Gouvêa #
# This work is licensed under MIT License #
# Copyright (c) 2015 - 2019 Heitor Gouvêa #
# #
# [+] AUTOR: Heitor Gouvêa #
# [+] EMAIL: [email protected] #
# [+] SITE: https://heitorgouvea.me #
# [+] GITHUB: https://github.com/GouveaHeitor #
# [+] TWITTER: @GouveaHeitor #
#########################################################
use Switch;
use lib "./lib/";
use Nipe::Stop;
use Nipe::Start;
use Nipe::CheckIp;
use Nipe::Functions;
sub main {
my $command = $ARGV[0];
switch ($command) {
case "stop" {
Nipe::Stop -> new();
}
case "start" {
Nipe::Start -> new();
}
case "status" {
Nipe::CheckIp -> new();
}
case "restart" {
Nipe::Stop -> new();
Nipe::Start -> new();
}
case "install" {
Nipe::Functions -> install();
}
Nipe::Functions -> help();
}
}
main();
exit;