Revision 488,
459 bytes
checked in by iwaim, 15 years ago
(diff) |
vine-spec-skeleton: 0.1
|
Line | |
---|
1 | package VineLinux::VSS::Type; |
---|
2 | |
---|
3 | use HTML::Template; |
---|
4 | use FileHandle; |
---|
5 | |
---|
6 | my $output_dir = "."; |
---|
7 | |
---|
8 | sub new { |
---|
9 | my $class = shift; |
---|
10 | bless {}, $class; |
---|
11 | } |
---|
12 | |
---|
13 | sub generate { |
---|
14 | my $class = shift; |
---|
15 | |
---|
16 | die "not implement \n"; |
---|
17 | } |
---|
18 | |
---|
19 | sub _generate_file { |
---|
20 | my $class = shift; |
---|
21 | my $filename = shift; |
---|
22 | my $content = shift; |
---|
23 | |
---|
24 | my $fh = new FileHandle "> $output_dir/$filename"; |
---|
25 | if (defined $fh) { |
---|
26 | $fh->print($content); |
---|
27 | $fh->close; |
---|
28 | } |
---|
29 | |
---|
30 | return 1; |
---|
31 | } |
---|
32 | |
---|
33 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.