lib/vmpooler/api/dashboard.rb
def graph_prefix
        return @graph_prefix if @graph_prefix

        if config[:graphs]
          return 'vmpooler' unless config[:graphs]['prefix']

          @graph_prefix = config[:graphs]['prefix']
        elsif config[:graphite]
          return false unless config[:graphite]['prefix']

          @graph_prefix = config[:graphite]['prefix']
        else
          false
        end
      end
# configuration setting for URL prefix for graphs to view
configuration setting for URL prefix for graphs to view
configuration setting for URL prefix for graphs to view
def graph_prefix
        return @graph_prefix if @graph_prefix
        if config[:graphs]
          return 'vmpooler' unless config[:graphs]['prefix']
          @graph_prefix = config[:graphs]['prefix']
        elsif config[:graphite]
          return false unless config[:graphite]['prefix']
          @graph_prefix = config[:graphite]['prefix']
        else
          false
        end
      end
def graph_prefix return @graph_prefix if @graph_prefix if config [ :graphs ] return 'vmpooler' unless config [ :graphs ] [ 'prefix' ] @graph_prefix = config [ :graphs ] [ 'prefix' ] elsif config [ :graphite ] return false unless config [ :graphite ] [ 'prefix' ] @graph_prefix = config [ :graphite ] [ 'prefix' ] else false end end
configuration setting for URL prefix for graphs to view
configuration setting for URL prefix for graphs to view