note deps and provide scrpit to install them
This commit is contained in:
Родитель
c24d233410
Коммит
7f189f55f6
|
@ -1,2 +1,2 @@
|
|||
pinboard-backup-matthew.sh
|
||||
pinboard-backup-matthew
|
||||
/.bundle/
|
||||
/vendor/gems
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Загрузка…
Ссылка в новой задаче