astroboa-cli 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -2
- data/lib/astroboa-cli/command/model.rb +1 -0
- data/lib/astroboa-cli/util.rb +2 -1
- data/lib/astroboa-cli/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -65,12 +65,17 @@ e.g. `$ astroboa-cli help server:install`
|
|
65
65
|
If you use astroboa-cli in LINUX then server installation/running and repository installation/removal always require sudo privileges because astroboa is installed and runs as user 'astroboa'.
|
66
66
|
In MAC OS X no special user is created and thus sudo privileges are only required if you want to install astroboa to a directory that you do not own.
|
67
67
|
astroboa-cli checks the required privileges for each command and will produce an error message if not met.
|
68
|
+
|
68
69
|
If your ruby is installed with `rbenv` then **you need to also install** the `rbenv-sudo` plugin to overcome the problem of using rbenv installed rubies with sudo.
|
69
70
|
With `rbenv-sudo` installed you can install astroboa with the following command:
|
70
71
|
|
71
72
|
$ rbenv sudo astroboa-cli server:install
|
72
73
|
|
73
|
-
*Check the instructions
|
74
|
+
*Check the instructions on the following section about installing ruby to also learn how to install rbenv-sudo*
|
75
|
+
|
76
|
+
If you manage your rubies with `rvm` the you should use the `rvmsudo` command
|
77
|
+
|
78
|
+
$ rvmsudo astroboa-cli server:install
|
74
79
|
|
75
80
|
|
76
81
|
|
@@ -170,12 +175,15 @@ If you prefer to use 'rvm' as your ruby management utility use the following com
|
|
170
175
|
|
171
176
|
$ curl -L get.rvm.io | bash -s stable
|
172
177
|
|
173
|
-
For multi-user installation and detailed rvm installation instructions check: https://rvm.io/rvm/install/
|
178
|
+
For multi-user installation and detailed rvm installation instructions check: https://rvm.io/rvm/install/
|
179
|
+
To use `sudo` to run astroboa-cli (and any other ruby-based program) you should use `rvmsudo`
|
174
180
|
|
175
181
|
After 'rvm' has been installed run the following commands to install ruby 1.9.3-p194:
|
176
182
|
|
177
183
|
$ rvm install 1.9.3-p194
|
178
184
|
$ rvm use 1.9.3-p194
|
185
|
+
|
186
|
+
run: `$ rvm use 1.9.3-p194 --default` to make 1.9.3-p194 your default ruby
|
179
187
|
|
180
188
|
# LICENSE
|
181
189
|
-------
|
data/lib/astroboa-cli/util.rb
CHANGED
@@ -240,8 +240,9 @@ module AstroboaCLI
|
|
240
240
|
display "You need sudo privileges to run this command. Checking..."
|
241
241
|
error <<-MSG.gsub(/^ {6}/, '') unless running_with_sudo?
|
242
242
|
You are not running with sudo privileges. Please run astroboa-cli with sudo
|
243
|
-
If you installed ruby with rbenv you need to install 'rbenv-sudo' plugin and then run 'rbenv sudo astroboa-cli <COMMAND>'
|
243
|
+
If you installed ruby with 'rbenv' you need to install 'rbenv-sudo' plugin and then run 'rbenv sudo astroboa-cli <COMMAND>'
|
244
244
|
For 'rbenv-sudo' installation check ruby installation instructions at https://github.com/betaconcept/astroboa-cli
|
245
|
+
If you manage your rubies with 'rvm' the you should use the 'rvmsudo' command: 'rvmsudo astroboa-cli <COMMAND>'
|
245
246
|
MSG
|
246
247
|
|
247
248
|
display "Running with sudo privileges: OK"
|
data/lib/astroboa-cli/version.rb
CHANGED