-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFalcon.pm
98 lines (80 loc) · 2.02 KB
/
Falcon.pm
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/perl
# $Id$
#
# WEB INTERFACE and Controll application for an headless squeezelite
# installation.
#
# Best used with Squeezelite-R2
# (https://github.com/marcoc1712/squeezelite/releases)
#
# Copyright 2016 Marco Curti, marcoc1712 at gmail dot com.
# Please visit www.marcoc1712.it
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License,
# version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
################################################################################
package Falcon;
use strict;
use warnings;
use utf8;
use Utils;
use Settings;
sub new{
my $class = shift;
my $status = shift;
my $self = bless {
_status => $status,
}, $class;
return $self;
}
sub getStatus{
my $self = shift;
return $self->{_status};
}
################################################################################
# tobe overidden
#
sub getGit{
my $self = shift;
$self->getStatus()->record('',5, "not implemented yet",'');
return undef;
}
sub isInstalled{
my $self = shift;
$self->getStatus()->record('',5, "not implemented yet",'');
return undef;
}
sub install{
my $self = shift;
my $git = shift;
$self->getStatus()->record('',5, "not implemented yet",'');
return undef;
}
sub upgrade{
my $self = shift;
my $git = shift;
$self->getStatus()->record('',5, "not implemented yet",'');
return undef;
}
sub remove{
my $self = shift;
$self->getStatus()->record('',5, "not implemented yet",'');
return undef;
}
sub auto {
my $self = shift;
my $git = shift;
if (!$self->isInstalled()){
return $self->install($git);
} else {
return $self->upgrade($git);
}
}
1;