From aed295eb4dd4f78d358a46b7aff61f31e2056f67 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 21 Jul 2017 12:31:19 -0400 Subject: add to the vagrant vm a 're.pl' command that gives a pretty nice perl shell (#176) * add re.pl support * order of includes matter --- vagrant_support/devtools.yml | 11 +++++++++++ vagrant_support/playbook.yml | 2 ++ vagrant_support/re.pl | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100755 vagrant_support/re.pl diff --git a/vagrant_support/devtools.yml b/vagrant_support/devtools.yml index bfc62cb2a..f9fb3e94f 100644 --- a/vagrant_support/devtools.yml +++ b/vagrant_support/devtools.yml @@ -2,3 +2,14 @@ - name: copy bashrc copy: src=bashrc dest=/home/vagrant/.bashrc mode=0644 +- cpanm: name=Devel::REPL notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Term::ReadLine::Gnu notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=PPI notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Data::Dumper::Concise notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=File::Next notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Sys::SigAction notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm +- cpanm: name=Lexical::Persistence notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm + +- name: copy re.pl + copy: src=re.pl dest=/usr/local/bin/re.pl mode=0755 + diff --git a/vagrant_support/playbook.yml b/vagrant_support/playbook.yml index 093444143..94d9325a3 100644 --- a/vagrant_support/playbook.yml +++ b/vagrant_support/playbook.yml @@ -136,6 +136,8 @@ - pkgconfig - rpm-build - graphviz + - ncurses-devel + - readline-devel - name: fetch cpanm get_url: diff --git a/vagrant_support/re.pl b/vagrant_support/re.pl new file mode 100755 index 000000000..d6deeca8c --- /dev/null +++ b/vagrant_support/re.pl @@ -0,0 +1,6 @@ +#!/bin/bash + +exec perl \ + -I$HOME/perl/lib/perl5 \ + -I/vagrant/local/lib/perl5 \ + $HOME/perl/bin/re.pl "$@" -- cgit v1.2.3-24-g4f1b