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 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 that follow to learn how to install rbenv-sudo*
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
  -------
@@ -1,5 +1,6 @@
1
1
  # encoding: UTF-8
2
2
 
3
+ require 'astroboa-cli/command/base'
3
4
  require 'nokogiri'
4
5
  require 'fileutils'
5
6
 
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module AstroboaCLI
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astroboa-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: