note deps and provide scrpit to install them

This commit is contained in:
Patrick McKenna 2016-01-13 15:43:29 -08:00
Родитель c24d233410
Коммит 7f189f55f6
4 изменённых файлов: 23 добавлений и 4 удалений

4
.gitignore поставляемый
Просмотреть файл

@ -1,2 +1,2 @@
pinboard-backup-matthew.sh
pinboard-backup-matthew
/.bundle/
/vendor/gems

3
Gemfile Normal file
Просмотреть файл

@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'octokit'

Просмотреть файл

@ -4,10 +4,10 @@ This is a package of git- and github-training scripts into an easily-installed p
## Installation
If you have Ruby installed, you can install these scripts into a directory in your path by running:
If you have Ruby >= 1.9 installed, you can install these scripts into a directory in your `$PATH` by running:
```
$ rake
$ script/bootstrap
```
## Usage

16
script/bootstrap Executable file
Просмотреть файл

@ -0,0 +1,16 @@
#!/bin/bash
# resolves all dependencies that the application requires to run
set -e
cd "$(dirname "$0")/.."
# make sure bundler installed
which bundler 2>&1 >/dev/null || gem install bundler
# make sure needed gems installed
bundle check --path vendor/gems 2>&1 >/dev/null || bundle install --path vendor/gems --quiet
# install scripts
rake