site-cookbooks/flume/libraries/flume_cluster.rb
# Returns the name of the cluster that this flume is playing with
Returns the name of the cluster that this flume is playing with
Returns the name of the cluster that this flume is playing with
def flume_collect_property( property )
    initial = node[:flume][property]
    initial = [] unless initial
    node[:flume][:plugins].inject( initial ) do | collection, (name,plugin) |
      collection += plugin[property] if plugin[property]
      collection
    end
  end
def flume_collect_property ( property ) initial = node [ :flume ] [ property ] initial = [ ] unless initial node [ :flume ] [ :plugins ] . inject ( initial ) do | collection , ( name , plugin ) | collection += plugin [ property ] if plugin [ property ] collection end end
Returns the name of the cluster that this flume is playing with
Returns the name of the cluster that this flume is playing with
property