def get_all_command_path(path = './mjsonwp_routes.js')
      raise "No file in #{path}" unless File.exist? path

      current_command = ''
      @spec_commands = File.read(path).lines.each_with_object({}) do |line, memo|
        if line =~ /#{WD_HUB_PREFIX_MATCH}.+'/
          current_command = gsub_set(line.slice(/#{WD_HUB_PREFIX_MATCH}.+'/))
          memo[current_command] = []
        elsif line =~ HTTP_METHOD_MATCH
          memo[current_command] << line.slice(HTTP_METHOD_MATCH).chop.downcase.to_sym
        end
        memo
      end
    end
def get_all_command_path(path = './mjsonwp_routes.js')
      raise "No file in #{path}" unless File.exist? path

      current_command = ''
      @spec_commands = File.read(path).lines.each_with_object({}) do |line, memo|
        if line =~ /#{WD_HUB_PREFIX_MATCH}.+'/
          current_command = gsub_set(line.slice(/#{WD_HUB_PREFIX_MATCH}.+'/))
          memo[current_command] = []
        elsif line =~ HTTP_METHOD_MATCH
          memo[current_command] << line.slice(HTTP_METHOD_MATCH).chop.downcase.to_sym
        end
        memo
      end
    end
Read routes.js and set the values in @spec_commands

 @param [String] path: A file path to routes.js
 @return [Hash] @spec_commands