lib/newrelic-management/manager.rb
def find_excluded(excluded)
      result = []
      Array(excluded).each do |exclude|
        if exclude.include?(':')
          find_labeled(exclude).each { |x| result << x }
          next
        end
        res = Client.get_server(exclude)
        result << res['id'] if res
      end
      result
    end
def find_excluded(excluded)
      result = []
      Array(excluded).each do |exclude|
        if exclude.include?(':')
          find_labeled(exclude).each { |x| result << x }
          next
        end
        res = Client.get_server(exclude)
        result << res['id'] if res
      end
      result
    end
def find_excluded ( excluded ) result = [ ] Array ( excluded ) . each do | exclude | if exclude . include? ( ':' ) find_labeled ( exclude ) . each { | x | result << x } next end res = Client . get_server ( exclude ) result << res [ 'id' ] if res end result end
=> Find Servers which should be excluded from Management
= > Find Servers which should be excluded from Management