Respect env var DEVEL_REPL_PROFILE
git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@5242
bd8105ee-0ff8-0310-8827-fb3f25b6796d
system$ re.pl --profile MyProject
+Alternatively, you can set the environment variable C<DEVEL_REPL_PROFILE> to
+MyProject.
+
When the profile name is unqualified, as in the above example, the profile is
assumed to be in the C<Devel::REPL::Profile::> namespace. Otherwise if you
pass something which contains the C<::> character sequence, it will be loaded
);
has 'profile' => (
- is => 'ro', isa => 'Str', required => 1, default => sub { 'Default' },
+ is => 'ro',
+ isa => 'Str',
+ required => 1,
+ default => sub { $ENV{DEVEL_REPL_PROFILE} || 'Default' },
);
has '_repl' => (