forked from htrgouvea/nipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nipe.pl
executable file
·55 lines (45 loc) · 1.16 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
53
54
55
#!/usr/bin/perl
#########################################################
# Nipe developed by Heitor Gouvêa #
# This work is licensed under MIT License #
# Copyright (c) 2015-2017 Heitor Gouvêa #
# #
# [+] AUTOR: Heitor Gouvêa #
# [+] EMAIL: [email protected] #
# [+] SITE: http://heitorgouvea.me #
# [+] GITHUB: https://github.com/GouveaHeitor #
# [+] TELEGRAM: @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 "help" {
Nipe::Functions -> help();
}
case "stop" {
Nipe::Stop -> new();
Nipe::CheckIp -> new();
}
case "start" {
Nipe::Start -> new();
Nipe::CheckIp -> new();
}
case "status" {
Nipe::CheckIp -> new();
}
case "install" {
Nipe::Functions -> install();
}
else {
Nipe::Functions -> help();
}
}
}
main();
exit;