aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-08-01 18:47:37 -0400
committerTeddy Wing2016-08-01 18:53:10 -0400
commit9ac192a643aed50382819e208073b26a25c81f69 (patch)
tree0b9f7f41b4a15817c7b9ca0eb80530e0233c3e9b
parent00b2b0947c857cd16658bee1d7a977db73b29270 (diff)
downloaddotvim-9ac192a643aed50382819e208073b26a25c81f69.tar.bz2
Add command to post mentor logs to The Firehose Project
It finally became tedious to have to manually execute my custom script that posts a mentor log to The Firehose Project in a new shell. Create a new command that will run the script directly within Vim so I don't have to leave the editor. Actual file paths are stored in `projects/file-paths.vim`. Need to set the `BUNDLE_GEMFILE` so that the Ruby gems required by the script get loaded. The absolute path of the current file gets passed to the script for posting.
-rw-r--r--projects/the_firehose_project.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/the_firehose_project.vim b/projects/the_firehose_project.vim
new file mode 100644
index 0000000..d04d008
--- /dev/null
+++ b/projects/the_firehose_project.vim
@@ -0,0 +1,2 @@
+" Post a mentor log
+command! FirehosePostMentorLog execute "!BUNDLE_GEMFILE=$VIM_PROJECT_PATH_FIREHOSE_POST_A_MENTOR_SESSION/Gemfile bundle exec ruby $VIM_PROJECT_PATH_FIREHOSE_POST_A_MENTOR_SESSION/main.rb " . shellescape(expand('%:p'))