From a9471db5ad3fb9c280e0c99c9c52cf59c627fe42 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 20 May 2016 15:52:36 -0700 Subject: fixed leap_cli install instructions --- pages/docs/platform/details/development.md | 14 ++++++++------ pages/docs/platform/tutorials/quick-start.md | 16 ++++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/pages/docs/platform/details/development.md b/pages/docs/platform/details/development.md index 78915ad..bbda56d 100644 --- a/pages/docs/platform/details/development.md +++ b/pages/docs/platform/details/development.md @@ -8,13 +8,15 @@ Installing leap_cli Install the latest: - gem install leap_cli --install-dir ~/leap - export PATH=$PATH:~/leap/bin + gem install --user-install leap_cli -Install a particular version: +Or install a particular version: + + gem install --version 1.8 --user-install leap_cli + +Add the --user-install directory to your path: - gem install leap_cli --version 1.8 --install-dir ~/leap - export PATH=$PATH:~/leap/bin + [ $(which ruby) ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" ### From gem, system wide @@ -45,7 +47,7 @@ Install a particular version: Then do one of the following to be able to run `leap` command: cd leap_cli - export PATH=$PATH:`pwd`/bin + PATH=$PATH:`pwd`/bin alias leap="`pwd`/bin/leap" ln -s `pwd`/bin/leap ~/bin/leap diff --git a/pages/docs/platform/tutorials/quick-start.md b/pages/docs/platform/tutorials/quick-start.md index f963867..561cbfb 100644 --- a/pages/docs/platform/tutorials/quick-start.md +++ b/pages/docs/platform/tutorials/quick-start.md @@ -50,16 +50,20 @@ Install core prerequisites on your workstation. ### Install the LEAP command-line utility -Install the `leap` command from rubygems.org: +Install the `leap` command system-wide: - workstation$ gem install leap_cli --install-dir ~/leap - workstation$ export PATH=$PATH:~/leap/bin + workstation$ sudo gem install leap_cli -Alternately, you can install `leap` system wide: +Alternately, you can install `leap` locally without root privileges: - workstation$ sudo gem install leap_cli + workstation$ gem install --user-install leap_cli + workstation$ PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" + +If you choose a local install, you probably want to permanently add the --user-install directory to your PATH by adding this to your `~/.profile` file (requires logout): + + [ $(which ruby) ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" -To confirm that you installed `leap` correctly, try running `leap help`. +To confirm that you installed `leap` correctly, try running `leap --version`. Create a provider instance ============================================= -- cgit v1.2.3