[Bps-public-commit] r15416 - in Prophet/trunk/lib/Prophet: CLI
jesse at bestpractical.com
jesse at bestpractical.com
Sun Aug 24 19:08:15 EDT 2008
Author: jesse
Date: Sun Aug 24 19:08:15 2008
New Revision: 15416
Modified:
Prophet/trunk/lib/Prophet/CLI.pm
Prophet/trunk/lib/Prophet/CLI/Command.pm
Log:
More delegation cleanups as we flesh out the new Context object
Modified: Prophet/trunk/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI.pm Sun Aug 24 19:08:15 2008
@@ -36,7 +36,6 @@
has context => (
is => 'rw',
isa => 'Prophet::CLIContext',
- handles => [qw/has_arg set_arg arg delete_arg arg_hash prop_get set_prop prop_set prop_names props/],
lazy => 1,
default => sub {
return Prophet::CLIContext->new( app_handle => shift->app_handle);
Modified: Prophet/trunk/lib/Prophet/CLI/Command.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI/Command.pm Sun Aug 24 19:08:15 2008
@@ -8,10 +8,7 @@
isa => 'Prophet::CLI',
weak_ref => 1,
handles => [
- qw/args set_arg arg has_arg delete_arg arg_names/,
- qw/props set_prop prop has_prop delete_prop prop_names/,
qw/app_handle handle resdb_handle config/,
- 'add_to_prop_set', 'prop_set',
],
);
@@ -19,6 +16,12 @@
is => 'rw',
isa => 'Prophet::CLIContext',
lazy => 1,
+ handles => [
+ qw/args set_arg arg has_arg delete_arg arg_names/,
+ qw/props set_prop prop has_prop delete_prop prop_names/,
+ 'add_to_prop_set', 'prop_set',
+ ],
+
default => sub {
return Prophet::CLIContext->new( app_handle => shift->app_handle);
}
More information about the Bps-public-commit
mailing list