summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-07-21 18:31:19 +0200
committerMary Umoh <umohm12@gmail.com>2017-07-21 18:31:19 +0200
commitaed295eb4dd4f78d358a46b7aff61f31e2056f67 (patch)
treecf8f412838bf20cac29f0c7e5ba47d1094e798e6
parentda9c617eb5d8345409386b85b5d8c167fc0c55d7 (diff)
downloadbugzilla-aed295eb4dd4f78d358a46b7aff61f31e2056f67.tar.gz
bugzilla-aed295eb4dd4f78d358a46b7aff61f31e2056f67.tar.xz
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
-rw-r--r--vagrant_support/devtools.yml11
-rw-r--r--vagrant_support/playbook.yml2
-rwxr-xr-xvagrant_support/re.pl6
3 files changed, 19 insertions, 0 deletions
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 "$@"