Hi, I'm trying to use the Script Runner to create a script that uses net-scp and when I require 'net/scp' in the script and run it I get a LoadError : LoadError. After adding the gem in the Gemfile under COSMOS-5.0.3 and COSMOS-5.0.3/cosmos like so
gem 'net-scp', : require => 'net/scp'
I get a bundle install error
I was able to get around this by changing the Gemfile source ENV['RUBYGEMS_URL'] to source 'https://rubygems.org' (which should've worked without doing this as RUBYGEMS_URL is correctly defined in the .env file )
Even after the bundle install successfully completed I still get the Load:Error in the script runner and was wondering if you had any suggestions. Thanks!
Hi, I'm trying to use the Script Runner to create a script that uses net-scp and when I require 'net/scp' in the script and run it I get a LoadError : LoadError. After adding the gem in the Gemfile under COSMOS-5.0.3 and COSMOS-5.0.3/cosmos like so
gem 'net-scp', : require => 'net/scp'
I get a bundle install errorI was able to get around this by changing the Gemfile
source ENV['RUBYGEMS_URL']
tosource 'https://rubygems.org'
(which should've worked without doing this as RUBYGEMS_URL is correctly defined in the .env file )Even after the bundle install successfully completed I still get the Load:Error in the script runner and was wondering if you had any suggestions. Thanks!