forked from perlbal/Perlbal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- introduce CommandContext, so management commands can be less
verbose when in config files (service/pool names can be left off when you just created them a couple lines before) git-svn-id: http://code.sixapart.com/svn/perlbal/trunk@341 6caf28e9-730f-0410-b62b-a31386fe13fb
- Loading branch information
bradfitz
committed
Jul 26, 2005
1 parent
93c52ee
commit 6cce2b9
Showing
6 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# keep track of the surrounding context for a ManageCommand, so commands | ||
# can be less verbose when in config files | ||
|
||
package Perlbal::CommandContext; | ||
use strict; | ||
use warnings; | ||
use fields ( | ||
'last_created', # the name of the last pool or service created | ||
); | ||
|
||
sub new { | ||
my $class = shift; | ||
my $self = fields::new($class); | ||
return $self; | ||
} | ||
|
||
1; | ||
|
||
# Local Variables: | ||
# mode: perl | ||
# c-basic-indent: 4 | ||
# indent-tabs-mode: nil | ||
# End: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters