File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 15
15
# See the License for the specific language governing permissions and #
16
16
# limitations under the License. #
17
17
#--------------------------------------------------------------------------- #
18
+
19
+ ONE_LOCATION = ENV [ 'ONE_LOCATION' ] unless defined? ( ONE_LOCATION )
20
+
21
+ if !ONE_LOCATION
22
+ LIB_LOCATION ||= '/usr/lib/one'
23
+ RUBY_LIB_LOCATION ||= '/usr/lib/one/ruby'
24
+ GEMS_LOCATION ||= '/usr/share/one/gems'
25
+ else
26
+ LIB_LOCATION ||= ONE_LOCATION + '/lib'
27
+ RUBY_LIB_LOCATION ||= ONE_LOCATION + '/lib/ruby'
28
+ GEMS_LOCATION ||= ONE_LOCATION + '/share/gems'
29
+ end
30
+
31
+ # %%RUBYGEMS_SETUP_BEGIN%%
32
+ require 'load_opennebula_paths'
33
+ # %%RUBYGEMS_SETUP_END%%
34
+
35
+ $LOAD_PATH << RUBY_LIB_LOCATION
36
+
18
37
$LOAD_PATH. unshift ( '/var/tmp/one' )
19
38
20
39
require 'fileutils'
You can’t perform that action at this time.
0 commit comments