|
Revision 687, 0.7 kB
(checked in by jacques, 2 years ago)
|
|
Bump copyright and fixed typo in Interactive
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | # keep track of the surrounding context for a ManageCommand, so commands |
|---|
| 2 | # can be less verbose when in config files |
|---|
| 3 | # |
|---|
| 4 | # Copyright 2005-2007, Six Apart, Ltd. |
|---|
| 5 | # |
|---|
| 6 | |
|---|
| 7 | package Perlbal::CommandContext; |
|---|
| 8 | use strict; |
|---|
| 9 | use warnings; |
|---|
| 10 | no warnings qw(deprecated); |
|---|
| 11 | |
|---|
| 12 | use fields ( |
|---|
| 13 | 'last_created', # the name of the last pool or service created |
|---|
| 14 | 'verbose', # scalar bool: verbosity ("OK" on success) |
|---|
| 15 | ); |
|---|
| 16 | |
|---|
| 17 | sub new { |
|---|
| 18 | my $class = shift; |
|---|
| 19 | my $self = fields::new($class); |
|---|
| 20 | return $self; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | sub verbose { |
|---|
| 24 | my $self = shift; |
|---|
| 25 | $self->{verbose} = shift if @_; |
|---|
| 26 | $self->{verbose}; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | 1; |
|---|
| 30 | |
|---|
| 31 | # Local Variables: |
|---|
| 32 | # mode: perl |
|---|
| 33 | # c-basic-indent: 4 |
|---|
| 34 | # indent-tabs-mode: nil |
|---|
| 35 | # End: |
|---|