root/trunk/lib/Perlbal/CommandContext.pm

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
7package Perlbal::CommandContext;
8use strict;
9use warnings;
10no  warnings qw(deprecated);
11
12use fields (
13            'last_created', # the name of the last pool or service created
14            'verbose',      # scalar bool:  verbosity ("OK" on success)
15            );
16
17sub new {
18    my $class = shift;
19    my $self = fields::new($class);
20    return $self;
21}
22
23sub verbose {
24    my $self = shift;
25    $self->{verbose} = shift if @_;
26    $self->{verbose};
27}
28
291;
30
31# Local Variables:
32# mode: perl
33# c-basic-indent: 4
34# indent-tabs-mode: nil
35# End:
Note: See TracBrowser for help on using the browser.