ood_appkit 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ood_appkit/configuration.rb +2 -1
- data/lib/ood_appkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 850674682fcbe959939aca02f9a20171d4a8571a
|
4
|
+
data.tar.gz: e206532de1309dff2dff6558707c907f41a56db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40fe490ed48c377fa3ec0db0de57b1915d5e44be529f71eac3800316e78a6731698cbaa0b7ed53481b9d07ff1a3b4498ffc65b965fb818f3cfe7f2de4f0027f
|
7
|
+
data.tar.gz: 14f764aca4ebde3697dae62b4dc0661df5264cae9958771990639a837e59a68dca838885483ed0ae1b21ee8738b5fa2ea4d3f8b44f5a8b7df66c3ac86a8a5688
|
@@ -7,7 +7,7 @@ module OodAppkit
|
|
7
7
|
# Location where app data is stored on local filesystem
|
8
8
|
# @return [Pathname, nil] path to app data
|
9
9
|
def dataroot
|
10
|
-
Pathname.new(@dataroot) if @dataroot
|
10
|
+
Pathname.new(@dataroot).expand_path if @dataroot
|
11
11
|
end
|
12
12
|
attr_writer :dataroot
|
13
13
|
|
@@ -63,6 +63,7 @@ module OodAppkit
|
|
63
63
|
def set_default_configuration
|
64
64
|
ActiveSupport::Deprecation.warn("The environment variable RAILS_DATAROOT will be deprecated in an upcoming release, please use OOD_DATAROOT instead.") if ENV['RAILS_DATAROOT']
|
65
65
|
self.dataroot = ENV['OOD_DATAROOT'] || ENV['RAILS_DATAROOT']
|
66
|
+
self.dataroot ||= "~/#{ENV['OOD_PORTAL'] || "ondemand"}/data/#{ENV['APP_TOKEN']}" if ENV['APP_TOKEN']
|
66
67
|
|
67
68
|
# Initialize list of available clusters
|
68
69
|
c_config = Pathname.new(ENV['OOD_CLUSTERS'] || '/etc/ood/config/clusters.d')
|
data/lib/ood_appkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ood_appkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Franz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|