lib/rconf/platform.rb in rconf-0.8.21 vs lib/rconf/platform.rb in rconf-0.8.29

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide. +# Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized @@ -104,10 +104,11 @@ # === Return # candidates(Array):: List of potential candidates def dispatch_candidates(prefix) candidates = ["#{prefix}_#{family}_#{flavor}_#{release}", "#{prefix}_#{family}_#{flavor}", - "#{prefix}_#{family}"] + "#{prefix}_#{family}", + "#{prefix}"] candidates.map(&:to_sym) end end end