Apply rt.cpan.org patch 1o4 (#421899)
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Profile / Minimal.pm
diff --git a/lib/Devel/REPL/Profile/Minimal.pm b/lib/Devel/REPL/Profile/Minimal.pm
new file mode 100644 (file)
index 0000000..2b03ac9
--- /dev/null
@@ -0,0 +1,17 @@
+package Devel::REPL::Profile::Minimal;
+
+use Moose;
+use namespace::clean -except => [ 'meta' ];
+
+with 'Devel::REPL::Profile';
+
+sub plugins {
+  qw(History LexEnv DDS Packages Commands MultiLine::PPI);
+}
+
+sub apply_profile {
+  my ($self, $repl) = @_;
+  $repl->load_plugin($_) for $self->plugins;
+}
+
+1;