rescue DEFAULT_STORM_CONF_FILE = File.expand_path('~/.storm/storm.yaml') so we can use redstorm in environments that don't have HOME set.

This commit is contained in:
Ian Smith 2014-07-01 10:21:11 -07:00 committed by R. Tyler Croy
parent 9695a0bbb9
commit cf723b2136
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ module RedStorm
DEFAULT_IVY_TOPOLOGY_DEPENDENCIES = "#{SRC_IVY_DIR}/topology_dependencies.xml"
CUSTOM_IVY_TOPOLOGY_DEPENDENCIES = "#{DST_IVY_DIR}/topology_dependencies.xml"
DEFAULT_STORM_CONF_FILE = File.expand_path("~/.storm/storm.yaml")
DEFAULT_STORM_CONF_FILE = File.expand_path("~/.storm/storm.yaml") rescue ''
def current_ruby_mode
version = RUBY_VERSION[/(\d+\.\d+)(\.\d+)*/, 1]