Skip to content

Commit

Permalink
Fix gem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dann1 committed Jan 29, 2024
1 parent 32a9636 commit a65862d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
install() {
# dependencies
for gem in "${gems[@]}"; do
is_gem_installed "$gem" || sudo gem install "$gem"
is_gem_installed $gem || sudo gem install $gem
done

[ -d "$CONF_DIR" ] || sudo mkdir "$CONF_DIR"
Expand Down Expand Up @@ -87,7 +87,7 @@ EXEC_PATH="/usr/local/bin/${EXEC_FILE}"
INSTALL_DIR="/opt/provision-engine"
MODULES="client.rb configuration.rb log.rb server.rb runtime.rb error.rb function.rb"

gems=("opennebula" "sinatra" "logger" "json-schema") # check requires on server.rb
gems=("opennebula" "sinatra -v 3.1.0" "logger -v 1.6.0" "json-schema -v 4.1.1") # check requires on server.rb

action="${1:-"install"}"
setup_mode="${2:-"symlink"}"
Expand Down
2 changes: 1 addition & 1 deletion tests/prepare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# How to use
# ./prepare.rb http://one_host:2633/RPC2 http://one_host:2474 0 1

GEMS = ['rspec', 'rack-test'] # gems required for running the tests
GEMS = ['rspec -v 3.12.0', 'rack-test -v 2.1.0'] # gems required for running the tests
CONF_PATH = '/etc/provision-engine/engine.conf'

def install_gems
Expand Down

0 comments on commit a65862d

Please sign in to comment.